<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Apache + 20 virtual hosts + awstats?</title>
	<link>http://ask.metafilter.com/101942/Apache-20-virtual-hosts-awstats/</link>
	<description>Comments on Ask MetaFilter post Apache + 20 virtual hosts + awstats?</description>
	<pubDate>Wed, 17 Sep 2008 13:00:23 -0800</pubDate>
	<lastBuildDate>Wed, 17 Sep 2008 13:00:23 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Apache + 20 virtual hosts + awstats?</title>
		<link>http://ask.metafilter.com/101942/Apache-20-virtual-hosts-awstats</link>	
		<description>Apache + 20+ virtual hosts + awstats with one access log? &lt;br /&gt;&lt;br /&gt; Can one configure awstats to properly render individual awstats pages per virtual host if all virtual hosts are writing to the same access log?</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2008:site.101942</guid>
		<pubDate>Wed, 17 Sep 2008 12:41:08 -0800</pubDate>
		<dc:creator>xmutex</dc:creator>
		
			<category>apache</category>
		
			<category>awstats</category>
		
	</item> <item>
		<title>By: benzo8</title>
		<link>http://ask.metafilter.com/101942/Apache-20-virtual-hosts-awstats#1479410</link>	
		<description>Yup. You need an separate config files for each domain, named, and set the SiteDomain= and HostAliases= and DirData= config entries as suited. Then run awstats.pl -update -config=filename for each host. I do that automatically in apache logrotate, just before the log is rotated out.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.101942-1479410</guid>
		<pubDate>Wed, 17 Sep 2008 13:00:23 -0800</pubDate>
		<dc:creator>benzo8</dc:creator>
	</item><item>
		<title>By: xmutex</title>
		<link>http://ask.metafilter.com/101942/Apache-20-virtual-hosts-awstats#1479419</link>	
		<description>benzo: Is there anything you&apos;d need to do the LogFormat of the access log so that it includes virtual host information?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.101942-1479419</guid>
		<pubDate>Wed, 17 Sep 2008 13:15:56 -0800</pubDate>
		<dc:creator>xmutex</dc:creator>
	</item><item>
		<title>By: rhizome</title>
		<link>http://ask.metafilter.com/101942/Apache-20-virtual-hosts-awstats#1479428</link>	
		<description>I believe the logging token is %V.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.101942-1479428</guid>
		<pubDate>Wed, 17 Sep 2008 13:22:32 -0800</pubDate>
		<dc:creator>rhizome</dc:creator>
	</item><item>
		<title>By: benzo8</title>
		<link>http://ask.metafilter.com/101942/Apache-20-virtual-hosts-awstats#1479431</link>	
		<description>I use:&lt;br&gt;
&lt;br&gt;
LogFormat &quot;%v %h %l %u %t \&quot;%r\&quot; %&amp;gt;s %b \&quot;%{Referer}i\&quot; \&quot;%{User-Agent}i\&quot;&quot; vhost&lt;br&gt;
CustomLog /var/log/apache/access.log vhost&lt;br&gt;
&lt;br&gt;
On preview: Yes, it&apos;s  the %v that&apos;s important.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.101942-1479431</guid>
		<pubDate>Wed, 17 Sep 2008 13:24:03 -0800</pubDate>
		<dc:creator>benzo8</dc:creator>
	</item><item>
		<title>By: xmutex</title>
		<link>http://ask.metafilter.com/101942/Apache-20-virtual-hosts-awstats#1479434</link>	
		<description>I&apos;m assuming it&apos;s better for Apache to dump all access information into one log vs. N number of virtual host specific access logs. Anyone have thoughts?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.101942-1479434</guid>
		<pubDate>Wed, 17 Sep 2008 13:25:49 -0800</pubDate>
		<dc:creator>xmutex</dc:creator>
	</item><item>
		<title>By: nicwolff</title>
		<link>http://ask.metafilter.com/101942/Apache-20-virtual-hosts-awstats#1479478</link>	
		<description>I run a LogFormat like benzo8&apos;s and then pipe the output into &lt;a href=&quot;http://n0rp.chemlab.org/vlogger/&quot;&gt;vlogger&lt;/a&gt; which automatically sorts the log lines into separate files without my having to separately configure the virtual hosts, and rotates them by date in the bargain. Here&apos;s my configuration:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;LogFormat &quot;%v %h %l %u %t \&quot;%r\&quot; %&amp;gt;s %b \&quot;%{Referer}i\&quot; \&quot;%{User-Agent}i\&quot;&quot; vlogger&lt;br&gt;
CustomLog &quot;| /usr/local/bin/vlogger -u httpd -g httpd -s access_log -t access_log.%Y%m%d /web/logs&quot; vlogger&lt;/code&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.101942-1479478</guid>
		<pubDate>Wed, 17 Sep 2008 13:51:25 -0800</pubDate>
		<dc:creator>nicwolff</dc:creator>
	</item><item>
		<title>By: xmutex</title>
		<link>http://ask.metafilter.com/101942/Apache-20-virtual-hosts-awstats#1479539</link>	
		<description>Thanks. One last question- I assume the LogFormat line in the awstats conf files must match the Apache line verbatim?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.101942-1479539</guid>
		<pubDate>Wed, 17 Sep 2008 14:44:38 -0800</pubDate>
		<dc:creator>xmutex</dc:creator>
	</item><item>
		<title>By: benzo8</title>
		<link>http://ask.metafilter.com/101942/Apache-20-virtual-hosts-awstats#1479546</link>	
		<description>Here&apos;s the LogFormat directive I use in the awstats configuration files:&lt;br&gt;
&lt;br&gt;
LogFormat=&quot;%virtualname %host %logname %other %time1 %methodurl %code %bytesd %refererquot %uaquot&quot;&lt;br&gt;
&lt;br&gt;
Basically - yup - awstats needs to know what each field in the access.log represents.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.101942-1479546</guid>
		<pubDate>Wed, 17 Sep 2008 14:55:00 -0800</pubDate>
		<dc:creator>benzo8</dc:creator>
	</item><item>
		<title>By: xmutex</title>
		<link>http://ask.metafilter.com/101942/Apache-20-virtual-hosts-awstats#1479552</link>	
		<description>Do you guys separate SSL access logs?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.101942-1479552</guid>
		<pubDate>Wed, 17 Sep 2008 14:57:16 -0800</pubDate>
		<dc:creator>xmutex</dc:creator>
	</item><item>
		<title>By: benzo8</title>
		<link>http://ask.metafilter.com/101942/Apache-20-virtual-hosts-awstats#1479562</link>	
		<description>Indeed - it&apos;s basically a different server, so it gets different logs and different configuration.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.101942-1479562</guid>
		<pubDate>Wed, 17 Sep 2008 15:02:48 -0800</pubDate>
		<dc:creator>benzo8</dc:creator>
	</item><item>
		<title>By: xmutex</title>
		<link>http://ask.metafilter.com/101942/Apache-20-virtual-hosts-awstats#1479580</link>	
		<description>Thanks bezno8- appreciate it.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.101942-1479580</guid>
		<pubDate>Wed, 17 Sep 2008 15:13:17 -0800</pubDate>
		<dc:creator>xmutex</dc:creator>
	</item><item>
		<title>By: rodgerd</title>
		<link>http://ask.metafilter.com/101942/Apache-20-virtual-hosts-awstats#1479667</link>	
		<description>&lt;i&gt;I&apos;m assuming it&apos;s better for Apache to dump all access information into one log vs. N number of virtual host specific access logs. Anyone have thoughts?&lt;/i&gt;&lt;br&gt;
&lt;br&gt;
I&apos;ve never encountered Apache being bound by its logging.  Lots of other things, but not logging.  I would be extremely surprised if having a log per vhost would have any noticeable impact on performance.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.101942-1479667</guid>
		<pubDate>Wed, 17 Sep 2008 16:17:39 -0800</pubDate>
		<dc:creator>rodgerd</dc:creator>
	</item><item>
		<title>By: rokusan</title>
		<link>http://ask.metafilter.com/101942/Apache-20-virtual-hosts-awstats#1479677</link>	
		<description>Most setups I have seen have one log per vhost. Certainly tidier.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.101942-1479677</guid>
		<pubDate>Wed, 17 Sep 2008 16:25:55 -0800</pubDate>
		<dc:creator>rokusan</dc:creator>
	</item><item>
		<title>By: SirStan</title>
		<link>http://ask.metafilter.com/101942/Apache-20-virtual-hosts-awstats#1479987</link>	
		<description>Google Analytics?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.101942-1479987</guid>
		<pubDate>Wed, 17 Sep 2008 21:43:27 -0800</pubDate>
		<dc:creator>SirStan</dc:creator>
	</item><item>
		<title>By: rodgerd</title>
		<link>http://ask.metafilter.com/101942/Apache-20-virtual-hosts-awstats#1480107</link>	
		<description>If the question is about awstats, Google Analytics are not the answer, especially since they&apos;ll miss everybody with the NoScript extension.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.101942-1480107</guid>
		<pubDate>Thu, 18 Sep 2008 00:13:25 -0800</pubDate>
		<dc:creator>rodgerd</dc:creator>
	</item>
	</channel>
</rss>
