<div><div>2011/11/13 Ilan Berkner <span dir="ltr"><<a href="mailto:ilan@time4learning.com">ilan@time4learning.com</a>></span></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I have this location configuration:<div><br></div><div><div> location /</div><div> {</div><div> index maintenance.htm;</div><div> error_page 404 = maintenance.htm;</div><div> log_not_found off;</div>
<div> }</div><div><br></div><div>which I thought captures all requests, however, entering "/index.php" for example, causes the file to be downloaded instead of going to the "maintenance.htm" file. How can I capture all requests?</div>
</div></blockquote></div><div><br></div><div>Maybe if you put like this before the other locations:<div><br></div><div><div> location ~ .*$</div><div> {</div><div> index maintenance.htm;</div><div>
error_page 404 = maintenance.htm;</div>
<div> log_not_found off;</div><div> }</div></div></div><div><br></div><div><br></div>-- <br>Lucas Clemente Vella<br><a href="mailto:lvella@gmail.com" target="_blank">lvella@gmail.com</a><br>
</div>