mmmh, I did it, but I think the problem is other.<br><br>I copied the conf, and addded "root /var/www/html/mywebs.com"<br>But here the index is index.htm, I added "index index.htm" 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't know how can I avoid write logs for dynamic files. :-(
<br><br><div><span class="gmail_quote">On 9/5/07, <b class="gmail_sendername">Rakhesh Sasidharan</b> <<a href="mailto:rakhesh@rakhesh.com">rakhesh@rakhesh.com</a>> 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>> location /home {<br>> root /var/www/html/myweb.com/home;<br>> index index.htm;<br>> access_log off;<br>><br>> }<br><br>I see you'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'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> - Rakhesh<br> <a href="http://rakhesh.net/">http://rakhesh.net/</a><br><br></blockquote></div><br>