Welcome! Log In Create A New Profile

Advanced

Re: fastcgi causing 502 errors? [was: alternating 404 and 200]

Jeffrey 'jf' Lim
September 03, 2009 09:42PM
2009/9/4 Nuno Magalhães <nunomagalhaes@eu.ipp.pt>

> <snip>
> error_page 500 502 503 504 /50x.html;
> location = /50x.html {
> root /var/www/nginx-default;
> }
> location ~ \.(php|html)$ {
> fastcgi_pass localhost:8888;
> fastcgi_index index.php;
> fastcgi_param SCRIPT_FILENAME
> /var/www/nginx-default$fastcgi_script_name;
> fastcgi_param DOCUMENT_ROOT /var/www/nginx-default;
> fastcgi_intercept_errors on;
> include fastcgi_params;
> }
> }
>
>

hm, I would suggest you take out the '502' from your error_page handling.
You want to see whether the 502 is coming from your fastcgi... or nginx.
Take a look at your php error logs as well.

-jf
Subject Author Posted

fastcgi causing 502 errors? [was: alternating 404 and 200]

Nuno Magalhães September 03, 2009 04:00PM

Re: fastcgi causing 502 errors? [was: alternating 404 and 200]

Jeffrey 'jf' Lim September 03, 2009 04:10PM

Re: fastcgi causing 502 errors? [was: alternating 404 and 200]

Nuno Magalhães September 03, 2009 06:28PM

Re: fastcgi causing 502 errors? [was: alternating 404 and 200]

Jeffrey 'jf' Lim September 03, 2009 09:42PM

Re: fastcgi causing 502 errors? [was: alternating 404 and 200]

Nuno Magalhães September 04, 2009 10:53AM

Re: fastcgi causing 502 errors? [was: alternating 404 and 200]

vesperto September 07, 2009 10:34AM

Re: fastcgi causing 502 errors? [was: alternating 404 and 200]

vesperto September 08, 2009 06:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 56
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready