Apache2Triad Help, Support and Development Forum Index Apache2Triad Help, Support and Development
The apache2triad help , support and development forums
 

AWStats and multiple/remote servers
Click here to go to the original topic

 
       Apache2Triad Help, Support and Development Forum Index -> Hosting
View previous topic :: View next topic  
Author Message
Aries



Joined: 18 Mar 2005
Posts: 4

Posted: Mon Mar 21, 2005 2:49 am    Post subject: AWStats and multiple/remote servers  

I've installed A2T and can run AWStats for my localhost, successfully. I was just wondering if we can configure multiple web servers and if it's possible to read/analyze the log from a remote server or do we need to install AWStat on each of those web servers?

Any help/suggestion would be much appreciated.

Thanks in advance
Back to top  
Vlad Alexa Mancini



Joined: 07 Jul 2003
Posts: 1538

Posted: Tue Mar 22, 2005 2:13 am    Post subject:  

make awstats.example.com.conf for each domain (example.com in this case) might also want to see http://www.jrcsnet.ca/awstats/
Back to top  
Tastiger



Joined: 28 May 2006
Posts: 25

Posted: Sun Feb 25, 2007 9:33 pm    Post subject:  

I'll resurrect this thread as the link above is no longer active.

I now have:-

awstats.localhost.conf
awstats.polyoz.dhs.org.conf
awstats.scm-rpg.dhs.org.conf

But my problem is how to access these - if one follows the link it takes you to awstats.cgi which only shows stats for localhost.

How do I access the stats for the other domains?

UPDATE - FIXED

It is on page 11 of the pdf manual :-

http://127.0.0.1/awstats/awstats.cgi?config=ServerName (from VirtualHost)

is the setting that worked for me but you will have to change the type of log file

CustomLog logs/localhost-access_log common

won't work with awstats - I had to change the log type to combined

ie:- CustomLog logs/localhost-access_log combined


So your virtual host should be something like this:-

Code: NameVirtualHost *:80

#localhost
<VirtualHost localhost:80>
   ServerName localhost
   ServerAdmin admin@polyoz.dhs.org
   DocumentRoot c:/apache2triad/htdocs
   ErrorLog logs/localhost-error_log
   CustomLog logs/localhost-access_log combined
</VirtualHost>
Back to top  
 
       Apache2Triad Help, Support and Development Forum Index -> Hosting
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.13 © 2001, 2002 phpBB Group