Welcome! Log In Create A New Profile

Advanced

How to allow only specific URL's in maintenance mode?

December 12, 2011 12:49AM
My maintenance mode config is as follows :


if (-f $errorroot/maintenance.html)
{
return 503;
}

error_page 503 @maintenance;

location @maintenance
{
rewrite ^(.*)$ /maintenance.html break;
proxy_method GET;
proxy_pass http://localhost:100;
}


What it is doing is rewriting all the url to /maintenance.html if that file is present.
Now I want to allow only a few url's - they have to be accessible during maintenance mode too.

Can we achieve that?
Subject Author Posted

How to allow only specific URL's in maintenance mode?

shrinath.m December 12, 2011 12:49AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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