nginx + fastCGI for PHP error_page
问题 I set up custom error pages in nginx with fastCGI for PHP like this way and it works: root <FOLDER>; error_page 404 /error.php?404; location = /error.php { include /etc/nginx/fastcgi.conf; fastcgi_pass 127.0.0.1:1234; root <FOLDER>; } But since I have one error.php for every HTTP error codes, I wanted to set up in a general form. The problem is that I don't know if nginx provide the error code to be passed by GET to error.php I am looking for something like: root <FOLDER>; error_page 500 501