Thanks for the reply Aleks!<br><br>I changed my conf to have www www. I put this at the top of my conf:<br><br>user www www;<br><br>Now, to confirm: <br><br>DX-20070509-049# ps aux | grep nginx<br>root 84389 0.0 0.1 2040 1632 ?? Is 3:44AM 0:00.00 nginx: master process ./nginx<br>
www 84390 0.0 0.1 2360 1968 ?? S 3:44AM 0:00.03 nginx: worker process (nginx)<br>www 84391 0.0 0.1 2360 1968 ?? S 3:44AM 0:00.02 nginx: worker process (nginx)<br>www 84392 0.0 0.1 2360 1968 ?? S 3:44AM 0:00.03 nginx: worker process (nginx)<br>
www 84393 0.0 0.1 2360 2020 ?? S 3:44AM 0:00.02 nginx: worker process (nginx)<br>www 84394 0.0 0.1 2360 1968 ?? S 3:44AM 0:00.02 nginx: worker process (nginx)<br>root 84407 0.0 0.0 1552 1036 p0 R+ 3:46AM 0:00.00 grep nginx<br>
<br>And finally, the permissions:<br><br>DX-20070509-049# cd /usr/local/www<br>DX-20070509-049# ll<br>total 14<br>lrwxr-xr-x 1 root wheel 27 Apr 2 21:41 cgi-bin -> /usr/local/www/cgi-bin-dist<br>dr-xr-xr-x 2 root wheel 512 Apr 2 21:41 cgi-bin-dist<br>
drwxr-xr-x 9 root www 3584 Apr 6 03:45 data<br>dr-xr-xr-x 2 root wheel 1024 Apr 2 21:41 data-dist<br>drwxr-xr-x 3 root wheel 3584 Apr 2 21:41 icons<br>drwxr-xr-x 2 www www 512 Apr 6 03:25 proxy<br><br>
It seems www has permissions to /usr/local/www/data <br><br>My error log shows this :<br><br>2008/04/06 03:44:38 [error] 84393#0: *1 directory index of "/usr/local/www/data/" is forbidden<br><br><br><div class="gmail_quote">
On Sun, Apr 6, 2008 at 3:01 AM, Aleksandar Lazic <<a href="mailto:al-nginx@none.at">al-nginx@none.at</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Amer,<div class="Ih2E3d"><br>
<br>
<br>
On Sam 05.04.2008 22:01, Amer Shah wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hey Guys.<br>
<br>
I've been trying to figure this out from the site but I just can't :(<br>
<br>
What I want is the following<br>
- When a user puts it just my domain name, I want the server to give<br>
him the index.htm file .. i.e. if the user enters in <a href="http://example.com" target="_blank">example.com</a> I want<br>
him to get <a href="http://www.example.com/index.htm" target="_blank">www.example.com/index.htm</a><br>
<br>
<br>
I tried the following but it I get a 403 forbidden:<br>
<br>
server {<br>
listen 80;<br>
server_name localhost;<br>
root /usr/local/www/data;<br>
<br>
location / {<br>
index index.htm;<br>
}<br>
}<br>
<br>
Am I missing something ?<br>
</blockquote>
<br></div>
does user nobody is allowed to read your root?<br>
<br>
<a href="http://wiki.codemongers.com/NginxMainModule#user" target="_blank">http://wiki.codemongers.com/NginxMainModule#user</a><br>
<br>
What is in the error_log?<br>
<br>
<a href="http://wiki.codemongers.com/NginxMainModule#error_log" target="_blank">http://wiki.codemongers.com/NginxMainModule#error_log</a><br>
<br>
Cheers<br>
<br>
Aleks<br>
<br>
</blockquote></div><br>