Welcome! Log In Create A New Profile

Advanced

Re: Custom forced 503 page does not work

July 31, 2013 02:51AM
Hi,

Nginx reads from top to bottom, just like you. In your example, you are returning 503 (an action) before instructing to use your custom error page. Just need to put your instructions first, then your actions...like so:

error_page 500 502 503 504 /50x.html;
location = /50x.html { root /usr/share/nginx/html; }

location / { return 503; }


-Skyler
SubjectAuthorPosted

Custom forced 503 page does not work

Dennis JacobfeuerbornJuly 25, 2013 09:06AM

Re: Custom forced 503 page does not work

skchopperguyJuly 31, 2013 02:51AM

Re: Custom forced 503 page does not work

Maxim DouninJuly 31, 2013 04:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 133
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready