Thanks for the advice. When I do it this way, I get an error (nginx error log):<div><br></div><div><div>2010/10/03 00:27:33 [error] 20239#0: *6447 "/usr/local/nagios/share/nagios/index.php" is not found (2: No such file or directory)</div>
<div><br></div><div>so you can see that nginx is adding /nagios/ to the end of the root directory and so the file is not found (generating a 404 on the browser).</div><div><br></div><div>What would be the correct way to address this issue? </div>
<div><br></div><div><br></div><br><div class="gmail_quote">On Sat, Oct 2, 2010 at 9:03 PM, Edho P Arief <span dir="ltr"><<a href="mailto:edhoprima@gmail.com">edhoprima@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Sun, Oct 3, 2010 at 7:23 AM, Ilan Berkner <<a href="mailto:iberkner@gmail.com">iberkner@gmail.com</a>> wrote:<br>
> Thanks,<br>
> I tried it using "root" in the location, still no luck.<br>
> Here's my config (the parts that matter), the location /nagios/ is what's<br>
> not working. What am I doing wrong? Thanks<br>
<br>
</div>"not working"?<br>
<br>
- What are you expecting?<br>
- What are you getting?<br>
<div class="im"><br>
> http<br>
> {<br>
> root /var/www/html;<br>
> server<br>
> {<br>
> listen 10.0.1.163;<br>
> server_name <a href="http://dev.testsite.com" target="_blank">dev.testsite.com</a>;<br>
> location /nagios/<br>
> {<br>
> root /usr/local/nagios/share;<br>
> index index.php;<br>
> }<br>
<br>
</div>as this one is located in different root path, you need additional php block<br>
<br>
location ~ ^/nagios/.*\.php$ {<br>
...<br>
}<br>
<font color="#888888"><br>
--<br>
O< ascii ribbon campaign - stop html mail - <a href="http://www.asciiribbon.org" target="_blank">www.asciiribbon.org</a><br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br></div>