Chapter 11. The Apache HTTP Server
This chapter focuses on the
Apache HTTP Server 2.2, a robust, full-featured open source web server developed by the
Apache Software Foundation, that is included in Red Hat Enterprise Linux 6. It describes the basic configuration of the
httpd service, and covers advanced topics such as adding server modules, setting up virtual hosts, or configuring the secure HTTP server.
11.1. The Apache HTTP Server 2.2
There are important differences between the Apache HTTP Server 2.2 and version 2.0, and if you are upgrading from a previous release of Red Hat Enterprise Linux, you will need to update the httpd service configuration accordingly. This section reviews some of the newly added features, outlines important changes, and guides you through the update of older configuration files.
The Apache HTTP Server version 2.2 introduces the following enhancements:
Improved caching modules, that is,
mod_cache and
mod_disk_cache.
Support for proxy load balancing, that is, the
mod_proxy_balancer module.
Support for large files on 32-bit architectures, allowing the web server to handle files greater than 2GB.
A new structure for authentication and authorization support, replacing the authentication modules provided in previous versions.
Since version 2.0, few changes have been made to the default httpd service configuration:
The following modules are no longer loaded by default:
mod_cern_meta and
mod_asis.
The following module is newly loaded by default:
mod_ext_filter.
11.1.3. Updating the Configuration
To update the configuration files from the Apache HTTP Server version 2.0, take the following steps:
Make sure all module names are correct, since they may have changed. Adjust the LoadModule directive for each module that has been renamed.
Recompile all third party modules before attempting to load them. This typically means authentication and authorization modules.
If you use the
mod_userdir module, make sure the
UserDir directive indicating a directory name (typically
public_html) is provided.
If you use the Apache HTTP Secure Server, edit the /etc/httpd/conf.d/ssl.conf to enable the Secure Sockets Layer (SSL) protocol.
Note that you can check the configuration for possible errors by using the following command:
~]# service httpd configtest
Syntax OK