Welcome! Log In Create A New Profile

Advanced

RE: Advanced Maintenance

AMP Admin
July 01, 2009 11:06PM
I don't understand. How do we make the "no maintenance checks"? sorry, I'm
still learning.

If we want everything but privacypolicy.php, images directory and promo
directory to go to maintenance how would that look?

It seems that this puts the entire site in maintenance mode:
Location / {
if (-f $document_root/maintenance.php) {
rewrite ^(.*)$ /maintenance.php last;
break;
}
}

I'm not sure how to do the no maintenance part.

-----Original Message-----
From: owner-nginx@sysoev.ru [mailto:owner-nginx@sysoev.ru] On Behalf Of
Maxim Dounin
Sent: Wednesday, July 01, 2009 6:19 PM
To: nginx@sysoev.ru
Subject: Re: Advanced Maintenance

Hello!

On Wed, Jul 01, 2009 at 12:44:39PM -0500, AMP Admin wrote:

> I see lots of maintenance page solutions but I would like to keep serving
> images and a few directories. Is that possible?
>
> Right now we have:
> if (-f $document_root/maintenance.php) {
> rewrite ^(.*)$ /maintenance.php last;
> break;
> }
>
> But we would like to make the privacypolicy.php page and the images &
promo
> directories always available. That way people can always see our
> advertisers, images, and privacy policy.

Feel free to configure maintenance checks only in locations you
need them. E.g.

location / {
# maintenance checks here
...
}

location /always-visible {
# no maintenance checks here
}

Maxim Dounin

p.s. Please start a new thread when asking unrelated questions.
Just hitting "reply" is a bad idea.
Subject Author Posted

Advanced Maintenance

AMP Admin July 01, 2009 01:44PM

Re: Advanced Maintenance

Maxim Dounin July 01, 2009 07:19PM

RE: Advanced Maintenance

AMP Admin July 01, 2009 11:06PM

Re: Advanced Maintenance

edogawaconan July 01, 2009 11:37PM

RE: Advanced Maintenance

AMP Admin July 02, 2009 08:52AM

Re: Advanced Maintenance

Maxim Dounin July 02, 2009 11:24AM

Re: Advanced Maintenance

W. Andrew Loe III July 05, 2009 01:14PM

Re: Advanced Maintenance

merlin corey July 06, 2009 08:43PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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