Welcome! Log In Create A New Profile

Advanced

Nginx and Wordpress Image: HTTP Error 302

Posted by AlessandroIT 
Nginx and Wordpress Image: HTTP Error 302
October 10, 2010 11:36AM
Hi,
i've just shifted from Apache2 to the latest NGINX on my Debian VPS, and i get in trouble with image uploading on Wordpress.
The problems seems to occur only when i try to upload the images trough Flash Uploader, while there'snt any problem with the HTML uploader. Ofcourse, i need the Flash one to upload multiple images/time.
The problem occurs if i try to:
Upload image in Wordpress Image library using FLASH uploader
Upload image in Nextgen Gallery using FLASH uploader
Upload image in anything that require flash uploader.
All operation above, return an HTTP ERROR 302. I guess there's something wrong with the configuration in handling files uploaded from client to server. In order to exclude any issue related to permission, i'm running ngninx as root.

[code]
user root;
worker_processes 1;

events {
worker_connections 1024;
}


http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;

server {
listen 127.0.0.1:80;
server_name mydomain.it;
client_max_body_size 4m;

location /phpmyadmin {
root /usr/share;
index index.php;
}

location ~ ^/phpmyadmin.+\.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/share$fastcgi_script_name;
include fastcgi_params;
}

location / {
root /www/www.mydomain.it;
index index.php index.html index.htm;
if (-f $request_filename) {
expires 30d;
break;}

if (!-e $request_filename) {
rewrite ^(.+)$ /index.php?q=$1 last; }
}


error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}


location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /www/www.mydomain.it$fastcgi_script_name;
include fastcgi_params;
}

}


}

[/code]

Hope someone can help me. I didn't found anything on the web.
Thanks
Re: Nginx and Wordpress Image: HTTP Error 302
November 09, 2010 09:08AM
Allesandro:

I am having the same issue. Did you find a fix for this yet?
Re: Nginx and Wordpress Image: HTTP Error 302
November 09, 2010 09:11AM
In my case, i found out that the problem was related to a VPS issue rather than to config itself..
since i had the same issue with apache..


i bought a low-cost vps for testing purpose and, with the same configuration, everything works fine.

djtonyz Wrote:
-------------------------------------------------------
> Allesandro:
>
> I am having the same issue. Did you find a fix for
> this yet?
Re: Nginx and Wordpress Image: HTTP Error 302
November 09, 2010 10:13AM
Yes, I am having an issue with MediaTemple VPS in my production environment, but we are using another internal VPS here at my University for our dev environment.

I have yet to find a simple solutions to this problem. I guess you didn't have to change any settings then. I'm hoping someone can come to my rescue, because we can't simply change hosts. I'm running Wordpress 3.0.1 multi-site with domain mapping enabled. My mod_rewrite rules for Apache are in the .htaccess file.

I've read that it's not an htaccess issue if you're running nginx. You're post is the first one I've seen that specifically addresses the issue I'm having.

The developer doesn't have a solution just yet. He's been pretty silent on the issue so far. I mean, he's pointed me in different directions, but hasn't provided a specific fix for this type of server.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 125
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready