Welcome! Log In Create A New Profile

Advanced

Re: Match all requests

Piotr Karbowski
November 13, 2011 04:48PM
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.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Match all requests

Ilan Berkner November 13, 2011 11:00AM

Re: Match all requests

Lucas Clemente Vella November 13, 2011 11:32AM

Re: Match all requests

Valentin V. Bartenev November 13, 2011 11:34AM

Re: Match all requests

Igor Sysoev November 13, 2011 11:46AM

Re: Match all requests

Ilan Berkner November 13, 2011 04:40PM

Re: Match all requests

Piotr Karbowski November 13, 2011 04:48PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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