PHPBuilder - Using Webalizer to analyze Apache logs Page 3



RSS Twitter
Articles Site Operation

Using Webalizer to analyze Apache logs - Page 3

by: Rodney Hampton
|
September 5, 2001

Configuring Apache:

Most ISP's that use Apache have set up their domains as virtual hosts in their Apache configuration file (httpd.conf). By default, Apache logs everything to access_log and error_log (and perhaps access_log-ssl and error_log-ssl if you use mod_ssl). In order to properly analyze log files for your ISP's clients it is necessary to add a CustomLog directive within each virtualhost creating a separate log file for each domain. Take my domain for example:

<VirtualHost 64.240.90.200:80>
ServerAdmin webmaster@hamptonandassociates.net
DocumentRoot /www/handassoc/public_html
Servername hamptonandassociates.net
ServerAlias www.hamptonandassociates.net
</VirtualHost>
Between the VirtualHost tags that define my web-site, I wanted to add the following line:
CustomLog /var/log/httpd/www.hamptonandassociates.net-access_log combined

« Previous Page
1
|
2
|
3
|
4
|
5
|
6
Next Page »

Comment and Contribute

Your comment has been submitted and is pending approval.

Author:
Rodney Hampton

Comment:



Comment:

(Maximum characters: 1200). You have characters left.