Webalizer with Multiple subdomains

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Webalizer with Multiple subdomains

Postby razvan162 » 10. May 2009 09:52

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
razvan162
 
Posts: 6
Joined: 10. May 2009 09:45

Re: Webalizer with Multiple subdomains

Postby Sharley » 10. May 2009 10:05

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.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Webalizer with Multiple subdomains

Postby razvan162 » 10. May 2009 22:38

Thanks man....wery good explication
I did those things...hope work!
Seea ya!
razvan162
 
Posts: 6
Joined: 10. May 2009 09:45


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 53 guests