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

Jeffrey 'jf' Lim jfs.world at gmail.com
Fri Sep 4 05:12:24 MSD 2009


2009/9/4 Nuno Magalhães <nunomagalhaes at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20090904/07cd4379/attachment.html>


More information about the nginx mailing list