btw, when I change the same configuration to alias and try to access /nagios/, I get this error:<div><br><div>2010/10/03 00:36:06 [error] 7399#0: *6485 directory index of &quot;/usr/local/nagios/share&quot; is forbidden</div>
<div><br></div><div>when I go to /nagios/index.php, I don&#39;t get an error in the log, but an error in the browser, that says: </div><h1 style="font-size: 1.5em; margin-top: 1.083em; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(51, 51, 51); font-family: arial, sans-serif; line-height: 18px; ">
Oops! This link appears to be broken.</h1><div><br><br><div class="gmail_quote">On Sun, Oct 3, 2010 at 12:31 AM, Ilan Berkner <span dir="ltr">&lt;<a href="mailto:iberkner@gmail.com">iberkner@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;">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><div></div><div class="h5">
<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" target="_blank">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>On Sun, Oct 3, 2010 at 7:23 AM, Ilan Berkner &lt;<a href="mailto:iberkner@gmail.com" target="_blank">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><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><br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">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></div></div>
</blockquote></div><br></div></div>