Maintenance mode for all but my ip

2013-12-07 Thread Ian Evans
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

Re: Maintenance mode for all but my ip

2013-12-07 Thread B.R.
I am new to the use of maps, but I suppose it would fit perfectly, using core variables such as the binary IP address: Maybe something like: server { error_page 503 /503.html # Configuring error page map $binary_remote_addr $target { # Configuring white-listed IP addresses

Re: Maintenance mode for all but my ip

2013-12-07 Thread Paul N. Pace
Did you try putting 'allow your ip address;' above 'return...' line in if block? ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Maintenance mode for all but my ip

2013-12-07 Thread Jonathan Matthews
On 7 December 2013 14:58, B.R. reallfqq-ng...@yahoo.fr wrote: I am new to the use of maps, but I suppose it would fit perfectly, using core variables such as the binary IP address: [snip] rewrite ^.*$ $target #Redirecting all traffic according to map-assigned I don't particularly like ^^^

Re: Maintenance mode for all but my ip

2013-12-07 Thread B.R.
Hello, On Sat, Dec 7, 2013 at 4:10 PM, Jonathan Matthews cont...@jpluscplusm.comwrote: rewrite ^.*$ $target #Redirecting all traffic according to map-assigned I don't particularly like ^^^ this. It seems like a level of indirection too far ;-) ​To me​, your solution looks double

Re: Maintenance mode for all but my ip

2013-12-07 Thread Ian Evans
On 2013-12-07 09:58, B.R. wrote: I am new to the use of maps, but I suppose it would fit perfectly, using core variables such as the binary IP address: Maybe something like: server {     error_page 503 /503.html # Configuring error page     map $binary_remote_addr $target { # Configuring

Re: Maintenance mode for all but my ip

2013-12-07 Thread B.R.
​Hello,​ On Sat, Dec 7, 2013 at 6:31 PM, Ian Evans ianev...@digitalhit.com wrote: Thanks. I'll give this a spin. Is there anyway to still trigger the mapping based on the existence of a maintenance.whatever file? Just thinking of the ease of quickly touch'ing the maintenance file to trigger

Re: Maintenance mode for all but my ip

2013-12-07 Thread Jonathan Matthews
On 7 December 2013 15:19, B.R. reallfqq-ng...@yahoo.fr wrote: Hello, On Sat, Dec 7, 2013 at 4:10 PM, Jonathan Matthews cont...@jpluscplusm.com wrote: rewrite ^.*$ $target #Redirecting all traffic according to map-assigned I don't particularly like ^^^ this. It seems like a level of

Re: Maintenance mode for all but my ip

2013-12-07 Thread itpp2012
Full working config; http://www.cyberciti.biz/faq/custom-nginx-maintenance-page-with-http503/ Posted at Nginx Forum: http://forum.nginx.org/read.php?2,245306,245316#msg-245316 ___ nginx mailing list nginx@nginx.org

Re: Maintenance mode for all but my ip

2013-12-07 Thread B.R.
On Sat, Dec 7, 2013 at 10:39 PM, itpp2012 nginx-fo...@nginx.us wrote: Full working config; http://www.cyberciti.biz/faq/custom-nginx-maintenance-page-with-http503/ ​Thanks for replying after having carefully read ​what is asked for by Ian and not giving a too quick answer copy-pasted from