Chapter 10. Apache HTTP Server

Chapter 10. Apache HTTP Server

10.1. Apache HTTP Server 2.0
10.1.1. Features of Apache HTTP Server 2.0
10.1.2. Packaging Changes in Apache HTTP Server 2.0
10.1.3. File System Changes in Apache HTTP Server 2.0
10.2. Migrating Apache HTTP Server 1.3 Configuration Files
10.2.1. Global Environment Configuration
10.2.2. Main Server Configuration
10.2.3. Virtual Host Configuration
10.2.4. Modules and Apache HTTP Server 2.0
10.3. After Installation
10.4. Starting and Stopping httpd
10.5. Configuration Directives in httpd.conf
10.5.1. General Configuration Tips
10.5.2. ServerRoot
10.5.3. PidFile
10.5.4. Timeout
10.5.5. KeepAlive
10.5.6. MaxKeepAliveRequests
10.5.7. KeepAliveTimeout
10.5.8. IfModule
10.5.9. MPM Specific Server-Pool Directives
10.5.10. Listen
10.5.11. Include
10.5.12. LoadModule
10.5.13. ExtendedStatus
10.5.14. IfDefine
10.5.15. SuexecUserGroup
10.5.16. User
10.5.17. Group
10.5.18. ServerAdmin
10.5.19. ServerName
10.5.20. UseCanonicalName
10.5.21. DocumentRoot
10.5.22. Directory
10.5.23. Options
10.5.24. AllowOverride
10.5.25. Order
10.5.26. Allow
10.5.27. Deny
10.5.28. UserDir
10.5.29. DirectoryIndex
10.5.30. AccessFileName
10.5.31. CacheNegotiatedDocs
10.5.32. TypesConfig
10.5.33. DefaultType
10.5.34. HostnameLookups
10.5.35. ErrorLog
10.5.36. LogLevel
10.5.37. LogFormat
10.5.38. CustomLog
10.5.39. ServerSignature
10.5.40. Alias
10.5.41. ScriptAlias
10.5.42. Redirect
10.5.43. IndexOptions
10.5.44. AddIconByEncoding
10.5.45. AddIconByType
10.5.46. AddIcon
10.5.47. DefaultIcon
10.5.48. AddDescription
10.5.49. ReadmeName
10.5.50. HeaderName
10.5.51. IndexIgnore
10.5.52. AddEncoding
10.5.53. AddLanguage
10.5.54. LanguagePriority
10.5.55. AddType
10.5.56. AddHandler
10.5.57. Action
10.5.58. ErrorDocument
10.5.59. BrowserMatch
10.5.60. Location
10.5.61. ProxyRequests
10.5.62. Proxy
10.5.63. Cache Directives
10.5.64. NameVirtualHost
10.5.65. VirtualHost
10.5.66. Configuration Directives for SSL
10.6. Default Modules
10.7. Adding Modules
10.8. Virtual Hosts
10.8.1. Setting Up Virtual Hosts
10.8.2. The Secure Web Server Virtual Host
10.9. Additional Resources
10.9.1. Useful Websites
10.9.2. Related Books

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.0 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.

For more information about the HTTP Configuration Tool, please refer to the chapter titled Apache HTTP Server Configuration in the Red Hat Enterprise Linux System Administration Guide.


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-4 because CentOS-4 is built from publicly available, open source SRPMS. The documentation is unmodified to be compliant with upstream distribution policy. Neither CentOS-4 nor the CentOS Project are in any way affiliated with or sponsored by Red Hat®, Inc.