Welcome! Log In Create A New Profile

Advanced

Re: Webalizer + nginx

May 04, 2010 05:02AM
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
On 03/05/2010 18:04, gloomen wrote:
> [QUOTE=mitsumoto;80948]Hello All!
>
> Help me please.
> Which format should be used to log in nginx Webalizer?
> I get inflated statistics
>
> [code]
> log_format main '$remote_addr - $remote_user [$time_local] "$request" '
> '$status $body_bytes_sent "$http_referer" '
> '"$http_user_agent" "$http_x_forwarded_for"';
> [/code]
>
> [code]
> #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;
> }
>
> }
> [/code]
>
> Thanks[/QUOTE]
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,82125,82125#msg-82125
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
>
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 9.0.814 / Virus Database: 271.1.1/2851 - Release Date: 05/03/10 07:27:00
>
>

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Webalizer + nginx

gloomen May 03, 2010 01:04PM

Re: Webalizer + nginx

hobson42 May 04, 2010 05:02AM

Re: Webalizer + nginx

gloomen May 04, 2010 07:48AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 125
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready