Match all requests
Piotr Karbowski
jabberuser at gmail.com
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
> domain.com/index.phpfile 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 http://wiki.nginx.org/NginxHttpCoreModule#location
-- Piotr.
More information about the nginx
mailing list