Webalizer + nginx

[QUOTE=mitsumoto;80948]Hello All!

Help me please.
Which format should be used to log in nginx Webalizer?
I get inflated statistics

    log_format main     '$remote_addr - $remote_user [$time_local] 
"$request" '
                        '$status $body_bytes_sent "$http_referer" '
                        '"$http_user_agent" "$http_x_forwarded_for"';
#virtual host
    server {
        listen       80;
        server_name example.ru;
        access_log   /var/log/nginx.access_log  main;

        charset windows-1251;
        client_max_body_size    4m;

        location / {
            root   /usr/local/www/example.ru;
            index  index.html index.php;
        }

    }

Thanks[/QUOTE]

Posted at Nginx Forum:

Hi gloomen,

I think you need to log each virtual server to a different log file.

What I suspect is happening is that that log file is getting logs from
other virtual servers
or the main server, and that is inflating your figures.

And I don’t think your log_format command is necessary either. I don’t
have a log_format command
and webalizer works just fine.

Regards

Ian

Thank you.

Posted at Nginx Forum: