Network Administration: Apache Virtual Host Creation
The Apache server has a default virtual host established by default. If you want to host more than one Web site on an Apache server, you can create additional virtual hosts.
Click the Add button on the Virtual Hosts tab of the HTTP configuration tool.
This brings up the Virtual Host Properties dialog box.
In the Host Information section, choose Name Based Virtual Host in the drop-down list.
The Virtual Host Properties dialog box morphs into the shown dialog box.
Enter the IP address and the host name for the virtual host.
The IP address is usually the IP address assigned to the Apache server, and the host name is the DNS name used to access the virtual host.
If you want to provide an alias for the virtual host, click the Add button, enter the alias name, and click OK.
An alias is often used for websites that are used on an intranet rather than on public websites. For example, if you’re setting up an intranet website for your company suggestion box, the full DNS name for the virtual host might be suggestionbox.mycompany.com. But if you provide just suggestionbox as an alias, users can access the suggestion box website by using suggestionbox rather than suggestionbox.mycompany.com as the website address.
Use the other tabs of the Virtual Host Properties dialog box to configure additional options.
For example, you might want to use the Page Options tab to change the directory page search list or designate custom error pages.
The virtual host is created. You’re returned to the HTTP configuration tool, and the new virtual host will appear in the Virtual Hosts list.