In the Host Information section, choose Default Virtual Host, IP based Virtual Host, or Name
based Virtual Host.
Default Virtual Host
You should only configure one default virtual host (remember that there is one setup by default).
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.
IP based Virtual Host
If you choose IP based Virtual Host, a window appears to configure the
based on the IP address of the server. Specify this IP address in the IP address field. To specify
multiple IP addresses, separate each IP address with spaces. To specify a port, use the syntax IP
Address:Port. Use "colon, asterisk" (:*) to configure all ports for the IP address. Specify the
host name for the virtual host in the Server Host Name field.
Name based Virtual Host
If you choose Name based Virtual Host, a window appears to configure the
NameVirtualHost
the IP address field. To specify multiple IP addresses, separate each IP address with spaces. To
specify a port, use the syntax IP Address:Port. Use "colon, asterisk" (:*) to configure all ports
for the IP address. Specify the host name for the virtual host in the Server Host Name field. In the
Aliases section, click Add to add a host name alias. Adding an alias here adds a
directive within the
24.3.1.2. SSL
Note
You cannot use name based virtual hosts with SSL because the SSL handshake (when
the browser accepts the secure Web server's certificate) occurs before the HTTP request,
which identifies the appropriate name based virtual host. If you plan to use name-based
virtual hosts, remember that they only work with your non-secure Web server.
25
http://httpd.apache.org/docs-2.0/mod/core.html#virtualhost
26
http://httpd.apache.org/docs-2.0/mod/core.html#virtualhost
27
http://httpd.apache.org/docs-2.0/mod/core.html#namevirtualhost
28
http://httpd.apache.org/docs-2.0/mod/core.html#serveralias
29
http://httpd.apache.org/docs-2.0/mod/core.html#namevirtualhost
27
directive based on the host name of the server. Specify the IP address in
29
NameVirtualHost
directive.
Adding and Editing a Virtual Host
26
<VirtualHost>
ServerAlias
directive
28
245
Need help?
Do you have a question about the ENTERPRISE LINUX 4 and is the answer not in the manual?
Questions and answers