Installation guide

128 Chapter 13. Apache Configuration
Figure 13-8. Virtual Hosts
http://www.apache.org/docs/vhosts/ and the Apache documentation on your machine
provides more information about virtual hosts.
13.3.1. Adding and Editing a Virtual Host
To add a virtual host, click the Virtual Hosts tab and then click the Add button. You can also
edit a virtual host by selecting it in the list and clicking the Edit button.
13.3.1.1. General Options
The General Options settings only apply to the virtual host that you are configuring. Set the
name of the virtual host in the Virtual Host Name text area. This name is used by Apache
Configuration Tool to distinguish between virtual hosts.
Set the Document Root Directory value to the directory that contains the root document
(such as index.html) for the virtual host. This option corresponds to the DocumentRoot di-
rective within the VirtualHost directive. Before Red Hat Linux 7.0, Apache provided with
Red Hat Linux used /home/httpd/html as the DocumentRoot. In Red Hat Linux 7.3, how-
ever, the default DocumentRoot is /var/www/html.
The Webmaster email address corresponds to the ServerAdmin directive within the Vir-
tualHost directive. This email address is used in the footer of error pages if you choose to
show a footer with an email address on the error pages.
In the Host Information section, choose Default Virtual Host, IP based Virtual Host, or
Name based Virtual Host.
13.3.1.1.1. Default Virtual Host
If you choose Default Virtual Host, Figure 13-9 appears. You should only configure one
default virtual host. The default virtual host settings are used when the requested IP address
is not explicitly listed in another virtual host. If there is no default virtual host defined, the
main server settings are used.