access_log off
Jose Manuel Gonzalez Calvar
listasjm at gmail.com
Wed Sep 5 16:46:37 MSD 2007
mmmh, I did it, but I think the problem is other.
I copied the conf, and addded "root /var/www/html/mywebs.com"
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. :-(
On 9/5/07, Rakhesh Sasidharan <rakhesh at rakhesh.com> wrote:
>
>
> Jose Manuel Gonzalez Calvar wrote:
>
> > location /home {
> > root /var/www/html/myweb.com/home;
> > index index.htm;
> > access_log off;
> >
> > }
>
> I see you've already got a reply to your question ...
>
> Just confirming: your index file is located in
> /var/www/html/myweb.com/home or /var/www/html/myweb.com/home/home?
>
> The way you've set the location directive above, it looks for the index
> file in the latter location. Whereas if you want it to fetch from the
> former location, set root to /var/www/html/myweb.com -- the path in the
> location directive is suffixed to the root path.
>
> Just mentioning coz when I started out with Nginx I goofed up here. :)
>
> Regards,
>
> - Rakhesh
> http://rakhesh.net/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20070905/70f77e7e/attachment.html>
More information about the nginx
mailing list