[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Re: HELP! Statistics only for one day?!
- Subject: [cobalt-users] Re: HELP! Statistics only for one day?!
- From: "Gaitzsch, Andreas" <AGaitzsch@xxxxxxxxxxxxx>
- Date: Thu Jul 27 02:31:49 2000
I solved this problem by editing the apache-configuration file (httpd.conf)
I # out the standard customlog
# CustomLog /var/log/httpd/access combined
Then I made a customlog-file for each virtual host into a selfdefined
directory
<VirtualHost xxx.xxx.xx.x>
ServerName www.yourdomain.com
ServerAdmin admin
DocumentRoot /home/sites/site1/web
ServerAlias yourdomain.com
RewriteEngine on
RewriteCond %{HTTP_HOST} !^xxx.xxx.xx.x(:80)?$
RewriteCond %{HTTP_HOST} !^www.yourdomain.com(:80)?$
RewriteRule ^/(.*) http://www.yourdomain.com/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site1/users/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/sites/site1/users/$1/web/$3
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml
AddType text/html .shtml
CustomLog /home/yourdirectory/logs/yourdomain/access_log combined
</VirtualHost>
You can change the path/home/yourdirectory/logs/yourdomain/access_log
combined
to whatever you like.
Now i get one big logfile for each vhost and webalizer just works fine.
I'm missing rotatelog or cronolog to rotate the logs - I'm working on
installing
cronolog.
Another solution would be to delete the cronjob for deleting the standard
logfile every
two days - but i would be very careful ;-)
Regards,
Andreas
Find me on the web
http://www.databecker.de
http://www.game-america.com