DeveloperSide.NET Forums
December 12, 2019, 08:13:11 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Configuring awstats for multiple vhosts  (Read 20699 times)
0 Members and 1 Guest are viewing this topic.
seanp
Member
*
Posts: 4


View Profile
« on: August 28, 2008, 08:40:13 PM »

Hello,

I'm running WDC v2.00 on Windows Server 2003 x86, so far everything is running great.

But I'd like to know how to configure awstats to read vhosts' log files individually instead of all logs from all vhosts crammed into 1. I checked out the help files, read, trying playing around with perl in the command like and nothing was responding. Can someone help me out with a dumbed-down version on how to accomplish that?

Also, I'd like to be able to view awstats from other locations instead of the console, since I can only access it from http://localhost/awstats... How can I do this?

Thanks for looking!

Sean
Logged
seanp
Member
*
Posts: 4


View Profile
« Reply #1 on: August 28, 2008, 08:45:55 PM »

Nevermind on the second question.

This thread answered that - http://forums.devside.net/index.php?topic=1732.0

Sean
Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #2 on: August 28, 2008, 08:53:34 PM »

Most of the configuration of AWStats resides in the awstats.full-domain-name.conf files under folder awstats\wwwroot\cgi-bin\

You can create from the base template provided and configure a few lines within to do what you are asking... Such as the location of log files and a few other points.
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
seanp
Member
*
Posts: 4


View Profile
« Reply #3 on: August 28, 2008, 09:38:23 PM »

How and where do I set apache to split up the access.log files on a per vhost basis? Or is that step even needed?

Sorry, I'm a rookie with Apache.

Thanks for the fast reply admin!

Sean
Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #4 on: August 28, 2008, 10:29:25 PM »

You would define a separate access and error log within each VirtualHost block. It's been such a while since I've delt with Community Edition 2.0 that I really don't even remember where the vhosts configs are kept. Is there an httpd-vhosts.conf file under \www\Apache22\conf\extra\?
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
seanp
Member
*
Posts: 4


View Profile
« Reply #5 on: August 29, 2008, 12:38:20 AM »

Yes, that file is in that exact location.

I see the error log files defined in each vhost block, but they are all the same. I'll separate them so I can keep an eye on them. Some sites I'm just not worried about too much.

Now, for the access log file, none of the vhosts have access log files defined. Which I guess is ok, because awstats is now working correctly for each individual site. For future refence, how do I define an access log? Or how is it defined in this suite? Custom log? I'm reading the Apache site as I type this...

Sorry to pick your brain so much. I'm just trying to sharpen your skills with 2.0, ha. I would upgrade to 3.0 but I already have my SSL in place and don't so much want to go through that hassle again. Would I have to re-issue the SSL cert if I upgrade?

Sean
Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #6 on: August 29, 2008, 05:07:45 PM »

If there are no 'CustomLog logs/access.log ...' lines under httpd-vhosts.conf then the server is using the default access log defined either under httpd.conf or one of the extra config files such as suite-deflate_logio.conf

Add a similar line within each vhost block...
CustomLog logs/access_domainname.log combinedtrueout_host

That last part might need to be 'combinedtrueout' instead... It depends on which format is defined under suite-deflate_logio.conf
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!