Thank you all for your responses.<div><br></div><div>I believe that the missing element in my case was:</div><div><br></div><div>alias /usr/local/nagios/share/$1;</div><div><br></div><div>in the nagios php processing location, I wasn&#39;t aware that I would have to specify it there as well, but it makes sense now.</div>
<div><br></div><div>Thanks!<br><br><div class="gmail_quote">On Sun, Oct 3, 2010 at 12:40 AM, 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 11:31 AM, Ilan Berkner &lt;<a href="mailto:iberkner@gmail.com">iberkner@gmail.com</a>&gt; wrote:<br>
&gt; Thanks for the advice.  When I do it this way, I get an error (nginx error<br>
&gt; log):<br>
&gt; 2010/10/03 00:27:33 [error] 20239#0: *6447<br>
&gt; &quot;/usr/local/nagios/share/nagios/index.php&quot; is not found (2: No such file or<br>
&gt; directory)<br>
&gt; so you can see that nginx is adding /nagios/ to the end of the root<br>
&gt; directory and so the file is not found (generating a 404 on the browser).<br>
&gt; What would be the correct way to address this issue?<br>
&gt;<br>
&gt;<br>
<br>
</div><div class="im">&gt;         location /nagios/<br>
&gt;         {<br>
&gt;                 root /usr/local/nagios/share;<br>
&gt;                 index index.php;<br>
&gt;         }<br>
<br>
</div>use alias.<br>
<br>
location ~ ^/nagios/(.*\.php)$ {<br>
  alias /usr/local/nagios/share/$1;<br>
<div class="im">  fastcgi_pass <a href="http://127.0.0.1:9000" target="_blank">127.0.0.1:9000</a>;<br>
</div>  fastcgi_index index.php;<br>
  fastcgi_param SCRIPT_FILENAME $request_filename;<br>
  include fastcgi_params;<br>
}<br>
location = /nagios {<br>
  rewrite ^ /nagios/ permanent;<br>
}<br>
location /nagios/ {<br>
  index index.php;<br>
  alias /usr/local/nagios/share/;<br>
}<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5">O&lt; ascii ribbon campaign - stop html mail - <a href="http://www.asciiribbon.org" target="_blank">www.asciiribbon.org</a><br>
<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>