in NGINX by (31.6k points)
Is It Possible To Replace Nginx Errors Like 502 Error With 503?

1 Answer

0 votes
by (32.2k points)

502= Bad gateway

503= Server overloaded

Yes, it is possible but you to ensure that fastcgi_intercept_errors is set to ON, and use the error page directive.

Location /

{

fastcgi_pass 127.0.01:9001;

fastcgi_intercept_errors on;

error_page 502 =503/error_page.html;

#…

}

Related questions

0 votes
asked Aug 18, 2022 in SEO by Robin (14.6k points)
0 votes
0 votes
asked Feb 3, 2020 in NGINX by Tate (883 points)
0 votes
...