how can i quickly handle alternate config for site downtime?

Corey Donohoe atmos at atmos.org
Sat Dec 27 00:59:55 MSK 2008


On Fri, Dec 26, 2008 at 1:49 PM, Jonathan Vanasco <nginx at 2xlp.com> wrote:
> for the pat few years, i have stuff like this:
>
> file:  /_hosts/findmeon_
> content:
>        include /_hosts/findmeon_/www.findmeon.com ;
>        #include /_hosts/findmeon_/www.findmeon.com-downtime ;

Is this other config file pointing tosome kind of status page that
says "findmeon.com is down right now!" or something similar?  If it
is, you prolly wanna investigate maintenance pages and have them
return 503s during the downtime.

http://www.ruby-forum.com/topic/141251

>
> when i want to take a domain up/down, i just toggle to comment line for the
> include, and restart nginx like magic.
>
> i'm wondering if there is a better way?
>
> ideally i'd like to be able to either have some sort of if/else logic in
> nginx , and maybe either a command-line or file based way (this way kill
> -HUP still works )
>
> or maybe someone else has a better method ?
>
>



-- 
Corey Donohoe
http://atmos.org
http://engineyard.com





More information about the nginx mailing list