Welcome! Log In Create A New Profile

Advanced

Re: RE: Custom 503 Error Page

Killian Murphy
June 20, 2009 12:47AM
I tried pretty much all of the approaches outlined above without success
on nginx 0.6.37 (posting this in June 2009. Get the version # using:
nginx -v)
The one approach I found did work was putting the following in the
server section of my config files:

error_page 503 @503;
location @503 {
rewrite ^(.*)$ /system/maintenance.html break;
}

if (-f $document_root/system/maintenance.html) {
return 503;
}

I found it in the internet archive, posted by Lee Jensen and credited to
Ezra.

K.
--
Posted via http://www.ruby-forum.com/.
Subject Author Posted

Re: RE: Custom 503 Error Page

Killian Murphy June 20, 2009 12:47AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 195
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready