Welcome! Log In Create A New Profile

Advanced

Re: Display configuration at runtime?

April 16, 2012 05:40PM
Jim Ohlstein
On Apr 16, 2012 5:15 PM, "michael_teter" <nginx-forum@nginx.us> wrote:
>
> Howdy.
>
> I'm working on setting up a maintenance page, and I can't figure out
> where Nginx is looking for the maintenance.html that I have specified.
> I've tried placing the file in a lot of different locations, but I still
> get the generic "503 Service Temporarily Unavailable" page.

What does the error log show?

If you use something like:

location / {
root /some/path;
try_files maintenance.html $uri $uri/;
...;
}

then nginx will look for maintenance.html in the root directory and serve
it if it's present.

So to put our sites into maintenance mode, we simply copy our
maintenance.html into the root directory. No need to reload nginx. When
we're ready to go back up, the file is removed.

>
> My question is, is there a way I can get Nginx to display it's
> configuration at run-time, so perhaps I can determine where it is
> looking for the file?
>
> Thanks in advance,
> Michael
>
> Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,225392,225392#msg-225392
>

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

Display configuration at runtime?

michael_teter April 16, 2012 05:15PM

Re: Display configuration at runtime?

Jim Ohlstein April 16, 2012 05:40PM

Re: Display configuration at runtime?

michael_teter April 16, 2012 06:02PM

Re: Display configuration at runtime?

michael_teter April 16, 2012 06:05PM

Re: Display configuration at runtime?

Jim Ohlstein April 16, 2012 06:26PM

Re: Display configuration at runtime?

Francis Daly April 16, 2012 07:08PM

Re: Display configuration at runtime?

Valentin V. Bartenev April 16, 2012 06:20PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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