access_log off

Jose Manuel Gonzalez Calvar listasjm at gmail.com
Wed Sep 5 19:48:14 MSD 2007


The problem is the request. I mean.

I write this condition:

location ~* ^/home/.+\.(html|php) {
                root /var/www/html/myweb.com;
                access_log off;
        }
If the request is (for example) http://www.myweb.com/home/index.html
it's successful and doesn't write the log.
But if the request is http://www.myweb.com/home/ or
http://www.myweb.com/home/index.php

then it write's the log that's really the problem.

any ideas?

On 9/5/07, Roxis <roxis at list.ru> wrote:
>
> On Wednesday 05 September 2007, Jose Manuel Gonzalez Calvar wrote:
> > I don't know how can I avoid write logs for dynamic files.   :-(
>
> location ~ \.php$|\.htm$ {
>     access_log   off;
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20070905/eb962c6a/attachment.html>


More information about the nginx mailing list