Is it possible to replace 502 errors on nginx.conf (php-fpm problems), with 503?
502 = bad gateway
503 = server overloaded
nginx: 502
googlebot: Hmmm, I don't like that... sorry but... penalized...
nginx: 503
googlebot: Hmmm, no problem, I will try again later...
nginx: thank you for your willingness to understand
However, if the specified index files are not in the directory, Nginx will return 403 forbidden error. One way to resolve this issue is to add the index file specified in the configuration file or add the available index file to the config file.
Make sure fastcgi_intercept_errors
is set to on
, and use the error_page
directive:
location / {
fastcgi_pass 127.0.0.1:9001;
fastcgi_intercept_errors on;
error_page 502 =503 /error_page.html;
# ...
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With