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 &quot;/usr/local/nagios/share/nagios/index.php&quot; 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">&lt;<a href="mailto:edhoprima@gmail.com">edhoprima@gmail.com</a>&gt;</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 &lt;<a href="mailto:iberkner@gmail.com">iberkner@gmail.com</a>&gt; wrote:<br>
&gt; Thanks,<br>
&gt; I tried it using &quot;root&quot; in the location, still no luck.<br>
&gt; Here&#39;s my config (the parts that matter), the location /nagios/ is what&#39;s<br>
&gt; not working.  What am I doing wrong? Thanks<br>
<br>
</div>&quot;not working&quot;?<br>
<br>
- What are you expecting?<br>
- What are you getting?<br>
<div class="im"><br>
&gt; http<br>
&gt; {<br>
&gt;     root /var/www/html;<br>
&gt;     server<br>
&gt;     {<br>
&gt;         listen  10.0.1.163;<br>
&gt;         server_name  <a href="http://dev.testsite.com" target="_blank">dev.testsite.com</a>;<br>
&gt;         location /nagios/<br>
&gt;         {<br>
&gt;                 root /usr/local/nagios/share;<br>
&gt;                 index index.php;<br>
&gt;         }<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&lt; 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>