View Single Post
  #1  
Old 29th January 2013, 16:02
zapatas zapatas is offline
Junior Member
 
Join Date: Jan 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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?
Reply With Quote
Sponsored Links