Cameron Biggart wrote:

It's just using the standard Apache log format

CustomLog /var/log/apache/access.log combined

Is there somewhere I need to turn on the virtual hosts logging? They show up in the log file as. 203.111.75.196 - - [23/May/2005:10:59:20 +1000] "GET /images/nahlogo.jpg HTTP/1.1" 304 - "http://www.natureandhealth.com.au/"; "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4" 203.111.75.196 - - [23/May/2005:10:59:35 +1000] "GET /images/aphlogo.jpg HTTP/1.1" 304 - "http://www.ausphotography.com.au/"; "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4" 211.28.83.114 - - [22/May/2005:06:47:18 +1000] "GET /images/acrlogo.gif HTTP/1.1" 200 1800 "http://www.australiancreative.com.au/"; "Mozilla/4.0 (compatible; MSIE 5.22; Mac_PowerPC)" 203.12.97.92 - - [25/May/2005:14:13:14 +1000] "GET /yaffa.css HTTP/1.0" 200 284 "http://news.yaffa.com.au/subs.htm"; "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)"

So you can see the 4 vhosts there in the log file but Analog isn't seeing them somehow.

The field that includes the hostname in your example is not the virtual host, but the referring site.

In order to generate reports by virtual host you have to log that information in Apache, something like

LogFormat "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\" \"%v\"" virtualhost

The other option, if you prefer separate reports by domain, is to configure your Web server to write separate logs for each domain, by putting CustomLog statements in each VirtualHost section.

--
Klaus Johannes Rusch
[EMAIL PROTECTED]
http://www.atmedia.net/KlausRusch/

+------------------------------------------------------------------------
|  TO UNSUBSCRIBE from this list:
|    http://lists.meer.net/mailman/listinfo/analog-help
|
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
+------------------------------------------------------------------------

Reply via email to