Welcome! Log In Create A New Profile

Advanced

Re: Maintenance page and localhost access

Mathew Davies
May 27, 2010 04:00PM
Use the $remote_addr variable to check against the local IP address, if the
visitor isn't local, then send a 503 maintenance page. The 503 code is
important so search engines wont mark the website as dead.

On 22 May 2010 00:31, Ian M. Evans <ianevans@digitalhit.com> wrote:

> As I prepare to test some changes related to the "0day exploit" thread, I
> thought I'd set up a maintenance page block so I could do the testing.
>
> Just realized though that the maintenance block examples take the site down
> for everyone.
>
> How do you serve the maintenance page to visitors will still allowing
> localhost access.
>
> Should I just create a new server block listening on another port and deny
> all, allow 127.0.0.1?
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>



--
Kind Regards,
-Mathew Davies.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
SubjectAuthorPosted

Maintenance page and localhost access

Ian M. EvansMay 21, 2010 07:38PM

Re: Maintenance page and localhost access

Mathew DaviesMay 27, 2010 04:00PM

Re: Maintenance page and localhost access

Emil Kr├╝perMay 28, 2010 02:46PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 89
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 184 on July 08, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready