Installation guide

204 Chapter 14. Apache HTTP Server
Note
Any name-based virtual hosts you set up will only work with non-secure HTTP connections as you
cannot use name-based virtual hosts with a secure server. If you need to use virtual hosts with a
secure server, you will need to use IP address-based virtual hosts.
If you are using name-based virtual hosts, uncomment the NameVirtualHost configuration directive
and add the correct IP address for your server after NameVirtualHost. Then add more information
about the different domains using the VirtualHost tags which surround the ServerName for each
virtual host, plus any other configuration directives which are only applicable to that virtual host.
14.5.70. VirtualHost
VirtualHost and /VirtualHost tags surround any configuration directives which are in-
tended to apply to a virtual host. Most configuration directives can be used within virtual host tags,
and then they only apply to that particular virtual host.
A set of commented out VirtualHost tags surround some example configuration directives and
placeholders for the information you would need to fill in to set up a virtual host. Please see Section
14.8, for more information about virtual hosts.
Note
All SSL virtual hosts contexts have been moved into the file /etc/httpd/conf.d/ssl.conf.
14.5.71. SetEnvIf
The Apache configuration directive SetEnvIf can be used to set environment variables based on
headers in the request. In the supplied httpd.conf file, it is used to disable HTTP keepalive and to
allow SSL to close the connection without a close notify alert from the client browser. This setting is
necessary for certain browsers that do not reliably shut down the SSL connection.
14.5.72. SSL Configuration Directives
The SSL directives in /etc/httpd/conf.d/ssl.conf file can be configured to enable secure Web
communications using SSL and TLS.
For more information on SSL directives, please point your browser to
http://localhost/manual/mod/mod_ssl.html or the Apache group mod_ssl documentation at
http://httpd.apache.org/docs-2.0/mod/mod_ssl.html.
For information about setting up an Apache HTTP Secure Server see the chapter titled Apache HTTP
Secure Server Configuration in the Official Red Hat Linux Customization Guide.
Note
Do not modify your SSL directives unless you are absolutely sure about what you are doing. In most
cases, the SSL directives are configured appropriately as installed.