Figure 8 Webalizer Usage Report

For detailed information, see the Webalizer website at:

http://www.mrunix.net/webalizer/

Using Virtual Host Support

A virtual host runs more than one website on a single server. For example, www.website1.com and www.website2.com can be hosted on the same server.

The most widely used virtual host is "name-based," which means that multiple names are running on one IP address. Because the user provides the hostname as part of the URL, the user is not aware that various websites are using the same IP address.

The following example 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 as follows:

For Windows systems, edit the C:\WINDOWS\system32\drivers\etc\hosts file.

For Linux systems, edit the /etc/hosts file.

2.Add the following line:

<YOUR_WEB_SERVER_IP> www.website1.com www.website2.com

3.Verify that both websites resolve to the same IP address by entering the following commands:

# ping www.website1.com

# ping www.website2.com

4.Create the following two directories:

/srv/www/htdocs/website1

/srv/www/htdocs/website2

5.Create the following file:

/srv/www/htdocs/website1/index.html

6.Populate the file that you created in Step 5 with the following lines:

<HTML>

<HEAD>

</HEAD>

<BODY DIR="LTR">

<P ALIGN=CENTER STYLE="margin-bottom: 0cm"> <FONT FACE="Times New Roman, serif">

<FONT SIZE=6>This is www.website1.com</FONT> </FONT></P>

</BODY>

</HTML>

7.Create the following file:

/srv/www/htdocs/website2/index.html

22