Match all requests

Piotr Karbowski jabberuser at
Sun Nov 13 21:46:53 UTC 2011

On 13.11.2011 22:38, Ilan Berkner wrote:
> Thanks, but the code you provided still causes the
> to be downloaded instead of the maintenance
> page to show up?

Because you use location .php$ for php, I presume so you need add there 
something like 'try_files /maintenance.htm $uri =404;

There = to the php's location block.

You may need read

-- Piotr.

More information about the nginx mailing list