Chapter 21. Apache HTTP Server

Chapter 21. Apache HTTP Server

21.1. Apache HTTP Server 2.2
21.2. Migrating Apache HTTP Server Configuration Files
21.3. Starting and Stopping httpd
21.4. Apache HTTP Server Configuration
21.5. Configuration Directives in httpd.conf
21.6. Adding Modules
21.7. Virtual Hosts
21.8. Apache HTTP Secure Server Configuration
21.9. Additional Resources

The Apache HTTP Server is a robust, commercial-grade open source Web server developed by the Apache Software Foundation (http://www.apache.org/). Red Hat Enterprise Linux includes the Apache HTTP Server 2.2 as well as a number of server modules designed to enhance its functionality.

The default configuration file installed with the Apache HTTP Server works without alteration for most situations. This chapter outlines many of the directives found within its configuration file (/etc/httpd/conf/httpd.conf) to aid those who require a custom configuration or need to convert a configuration file from the older Apache HTTP Server 1.3 format.

Warning

If using the graphical HTTP Configuration Tool (system-config-httpd ), do not hand edit the Apache HTTP Server's configuration file as the HTTP Configuration Tool regenerates this file whenever it is used.

21.1. Apache HTTP Server 2.2

There are important differences between the Apache HTTP Server 2.2 and version 2.0 (version 2.0 shipped with Red Hat Enterprise Linux 4 and earlier). This section reviews some of the features of Apache HTTP Server 2.2 and outlines important changes. If you are upgrading from version 1.3, you should also read the instructions on migrating from version 1.3 to version 2.0. For instructions on migrating a version 1.3 configuration file to the 2.0 format, refer to Section 21.2.2, “Migrating Apache HTTP Server 1.3 Configuration Files to 2.0”.

21.1.1. Features of Apache HTTP Server 2.2

Apache HTTP Server 2.2 features the following improvements over version 2.0 :

  • Improved caching modules (mod_cache, mod_disk_cache, mod_mem_cache).

  • A new structure for authentication and authorization support, replacing the authentication modules provided in previous versions.

  • Support for proxy load balancing (mod_proxy_balancer)

  • support for handling large files (namely, greater than 2GB) on 32-bit platforms

The following changes have been made to the default httpd configuration:

  • The mod_cern_meta and mod_asis modules are no longer loaded by default.

  • The mod_ext_filter module is now loaded by default.

If upgrading from a previous release of Red Hat Enterprise Linux, the httpd configuration will need to be updated for httpd 2.2. For more information, refer to http://httpd.apache.org/docs/2.2/upgrading.html


Note: This documentation is provided {and copyrighted} by Red Hat®, Inc. and is released via the Open Publication License. The copyright holder has added the further requirement that Distribution of substantively modified versions of this document is prohibited without the explicit permission of the copyright holder. The CentOS project redistributes these original works (in their unmodified form) as a reference for CentOS-5 because CentOS-5 is built from publicly available, open source SRPMS. The documentation is unmodified to be compliant with upstream distribution policy. Neither CentOS-5 nor the CentOS Project are in any way affiliated with or sponsored by Red Hat®, Inc.