location and access_log off;

vilts nginx-forum at nginx.us
Thu Aug 20 19:20:48 MSD 2009


Hello,

I tried to turn off static file logging using this:

        location ~* .(css|js|gif|jpg|jpeg|ico)$ {
            access_log off;
        }

It turned the logging off, that part worked. But it also didn't serve any of these files anymore. Same effect was when I tried to redirect static file log to another file - again no images on web page.

I tried this with 0.7.61 and 0.8.9 versions.

What could be wrong?

Thanks!

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,5038,5038#msg-5038






More information about the nginx mailing list