Page 1 of 1

Webalizer with Multiple subdomains

PostPosted: 10. May 2009 09:52
by razvan162
Hi!
I have a little problem with webalizer...
I have Xampp instaled on Windows XP and 10 subdomains created in /xampp/apache/conf/extra/httpd-vhosts.conf and declared like this:
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin admin@myzone.ro
DocumentRoot C:\xampp\htdocs
ServerName myzone.ro
ServerAlias www.myzone.ro
ErrorLog logs/myzone.ro-error_log
CustomLog logs/myzone.ro-access_log common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin admin@myzone.ro
DocumentRoot C:\xampp\htdocs\www\onlinevideos
ServerName onlinevideos.myzone.ro
ServerAlias www.onlinevideos.myzone.ro
ErrorLog logs/onlinevideos.myzone.ro-error_log
CustomLog logs/onlinevideos.myzone.ro-access_log common
</VirtualHost>


My Webalizer dont work....sience i made subdomains the Webalizer stop to work...why?
What changes i must do?
Whanks a lot ans escuse my bad english..i'm from Romania! :D

Re: Webalizer with Multiple subdomains

PostPosted: 10. May 2009 10:05
by Sharley
My Webalizer dont work....sience i made subdomains the Webalizer stop to work...why?
Webalizer uses the C:\xampp\webalizer.conf file.

This line 28 tells Webalizer what access.log file to use to create the stats:
LogFile C:\xampp\apache\logs\access.log

As you can see this log file is different to the one you are using in your httpd-vhosts.conf file:
C:\xampp\apache\logs\myzone.ro-access_log

Look in the webalizer folder for webalizer.bat file which you can use as a template to create other webalizer bat files for each of your sub-domains using the following example:

Create this file in your text editor:
@echo off
webalizer.exe -c myzone.ro-access_log.conf

Save the file as:
myzone_ro.bat

Make a copy of webalizer.conf and edit the LogFile line like so:
LogFile C:\xampp\apache\logs\myzone.ro-access_log
Save the file as:
myzone.ro-access_log.conf

Now when you run the myzone_ro.bat file it will create the stats for that sub-domain.

You may need to create separate folders for each sub-domain's stats to keep control of them by editing each of the conf files you create on line 42, for example if you create a folder myzone_ro in the C:\xampp\webaliszer folder
OutputDir C:\xampp\webalizer\myzone_ro



Read the C:\xampp\webalizer\README file by dragging it into your open text editor for ideas on how to use Webalizer, though the file is for *nix users you can still get ideas for Windows uses or even search Google for ideas and answers.

Re: Webalizer with Multiple subdomains

PostPosted: 10. May 2009 22:38
by razvan162
Thanks man....wery good explication
I did those things...hope work!
Seea ya!