Welcome! Log In Create A New Profile

Advanced

Re: Maintenance mode for all but my ip

Ian Evans
December 07, 2013 03:38PM
On 2013-12-07 15:31, B.R. wrote:
> ​Hello,​
>
> On Sat, Dec 7, 2013 at 6:31 PM, Ian Evans <ianevans@digitalhit.com
> [1]> wrote:
>
>> Thanks. Ill 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 touching the maintenance file to
>> trigger the mapping as opposed to fiddling with the conf and
>> reloading each time you want to do some quick testing.
>
> By giving it 30 seconds of intensive thinking, I am sure you could
> figure this out by yourself, considering you already provided the if
> (-f ***) {...} trick.
>
> Since the
> http://nginx.org/en/docs/http/ngx_http_rewrite_module.html#if [2]if
> directive works in server blocks, you could enclose the rewrite rule
> in it to only apply maintenance mode based on the presence (or the
> absence?) of a specific file.
>

Sorry...too many late nights during this migration/upgrade. So I can
just place the "rewrite ^.*$ $target" into my 'if'. I'll give it a whirl
as soon as I get some caffeine. :-)

_______________________________________________
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: 224
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready