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
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
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
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 ^^^
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
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
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
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
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
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
10 matches
Mail list logo