mmmh, I did it, but I think the problem is other.<br><br>I copied the conf, and addded &quot;root /var/www/html/mywebs.com&quot;<br>But here the index is index.htm, I added &quot;index index.htm&quot; too. But index.htm is a php file, so fastcgi does the work. I can not write images, js,....static files, but the problem comes with dynamic files. I don&#39;t know how can I avoid write logs for dynamic files.&nbsp;&nbsp; :-(
<br><br><div><span class="gmail_quote">On 9/5/07, <b class="gmail_sendername">Rakhesh Sasidharan</b> &lt;<a href="mailto:rakhesh@rakhesh.com">rakhesh@rakhesh.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Jose Manuel Gonzalez Calvar wrote:<br><br>&gt; location /home {<br>&gt;&nbsp;&nbsp; root /var/www/html/myweb.com/home;<br>&gt;&nbsp;&nbsp; index index.htm;<br>&gt;&nbsp;&nbsp; access_log off;<br>&gt;<br>&gt; }<br><br>I see you&#39;ve already got a reply to your question ...
<br><br>Just confirming: your index file is located in<br>/var/www/html/myweb.com/home or /var/www/html/myweb.com/home/home?<br><br>The way you&#39;ve set the location directive above, it looks for the index<br>file in the latter location. Whereas if you want it to fetch from the
<br>former location, set root to /var/www/html/myweb.com -- the path in the<br>location directive is suffixed to the root path.<br><br>Just mentioning coz when I started out with Nginx I goofed up here. :)<br><br>Regards,
<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- Rakhesh<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://rakhesh.net/">http://rakhesh.net/</a><br><br></blockquote></div><br>