HP Open Source Middleware Stacks Blueprint: LAMP Architecture on HP ProLiant BladeSystem Servers on RHEL

Using Webalizer to Perform Apache HTTP Server Log Analysis
Webalizer is an analysis tool that you can use to generate detailed usage reports using the
information recorded in the Apache HTTP Server logs. Webalizer provides easy-to-read reports
in HTML format that you can customize for your needs.
Use the following procedure to set up Webalizer:
1. Open the file named /etc/httpd/conf.d/webalizer.conf with a text editor.
2. Modify the file lines as follows:
Alias /usage /var/www/usage
<Location /usage>
Order deny,allow
Deny from all
Allow from YOUR_WEB_BROWSER_IP
</Location>
3. Verify that the server status configuration is correct by opening a browser and entering the
following website:
http:// <YOUR_WEB_SERVER_IP>/usage
Figure 3 shows an example of a Webalizer usage report web page.
Figure 3 Webalizer Usage Report
Using Apache Virtual Host Support
A virtual host enables more than one website running on a single server. For example,
www.website1.com and www.website2.com can be hosted on the same website.
The most widely used virtual host is name-based, which means that multiple names are running
on one IP address. Since users provide the hostname as part of the URL, they are not aware that
various websites are using the same IP address.
The following steps illustrate the use of virtual hosting:
1. To configure virtual hosting, you must resolve two host names to the same IP address. One
method is to edit the /etc/hosts file of the client system by adding the following line:
Installing, Configuring, and Managing LAMP Middleware Stack Components 13