HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Tips/Tricks/Mods (http://www.howtoforge.com/forums/forumdisplay.php?f=29)
-   -   Varnish log files and Awstats (http://www.howtoforge.com/forums/showthread.php?t=60367)

zapatas 29th January 2013 16:02

Varnish log files and Awstats
 
I have installed and configured properly nginx+ispconfig. Recently I had to use varnish as a frontend due to high traffic at my server. Everything is working like a charm except for the logging of each virtual host that I have. The main logging of varnish can be done with varnishncsa or varnishlog.

Varnsishncsa seems to be perfect for the needs of awstats or webalizer. The problem is how to configure ispconfig in order to work in a nice way with vlogger and the splitted varninsncsa logs.

I have found that if I use the command

Code:

varnishncsa -m "RxHeader:^Host: domain.com$" -a -w /var/log/ispconfig/http/domain.com/access.log -D
for each virtual domain the log would get in the right place.

Is there a proposed patch or configuration for this to work automatically for each newly created virtual host?


All times are GMT +2. The time now is 01:49.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.