Welcome! Log In Create A New Profile

Advanced

Maintenance mode for all but my ip

Ian Evans
December 07, 2013 08:34AM
Getting ready to convert the site to UTF-8 (finally!) and wanted to
know how I could issue error code 503 to all people and bots but still
allow my IP in so I can go 'round the site checking for glitches due to
the change.

Right now I have this implementation for 503's but that issues the
error code for everyone including me. I know about allow/deny but I'm
not sure how it fits into this mechanism.

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

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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Maintenance mode for all but my ip

Ian Evans December 07, 2013 08:34AM

Re: Maintenance mode for all but my ip

B.R. December 07, 2013 10:00AM

Re: Maintenance mode for all but my ip

Jonathan Matthews December 07, 2013 10:12AM

Re: Maintenance mode for all but my ip

B.R. December 07, 2013 10:20AM

Re: Maintenance mode for all but my ip

Jonathan Matthews December 07, 2013 04:16PM

Re: Maintenance mode for all but my ip

itpp2012 December 07, 2013 04:39PM

Re: Maintenance mode for all but my ip

B.R. December 07, 2013 05:18PM

Re: Maintenance mode for all but my ip

Ian Evans December 07, 2013 12:32PM

Re: Maintenance mode for all but my ip

B.R. December 07, 2013 03:34PM

Re: Maintenance mode for all but my ip

Ian Evans December 07, 2013 03:38PM

Re: Maintenance mode for all but my ip

openletter December 07, 2013 10:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 98
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