Global Environment Configuration - Red Hat ENTERPRISE LINUX 4.5.0 Reference Manual

Table of Contents

Advertisement

Chapter 10. Apache HTTP Server
In the above command, replace
package.
Finally, it is useful to know that the Apache HTTP Server has a testing mode to check for
configuration errors. To use access it, type the following command:
apachectl configtest

2.1. Global Environment Configuration

The global environment section of the configuration file contains directives which affect the
overall operation of the Apache HTTP Server, such as the number of concurrent requests it can
handle and the locations of the various files. This section requires a large number of changes
and should be based on the Apache HTTP Server 2.0 configuration file, while migrating the old
settings into it.
2.1.1. Interface and Port Binding
The
and
BindAddress
more flexible
directive.
Listen
If
was set in the 1.3 version configuration file, change it to
Port 80
configuration file. If
Port
the contents of the
ServerName
For example, the following is a sample Apache HTTP Server 1.3 directive:
Port 123 ServerName www.example.com
To migrate this setting to Apache HTTP Server 2.0, use the following structure:
Listen 123 ServerName www.example.com:123
For more on this topic, refer to the following documentation on the Apache Software
Foundation's website:
http://httpd.apache.org/docs-2.0/mod/mpm_common.html#listen
http://httpd.apache.org/docs-2.0/mod/core.html#servername
2.1.2. Server-Pool Size Regulation
When the Apache HTTP Server accepts requests, it dispatches child processes or threads to
handle them. This group of child processes or threads is known as a server-pool. Under Apache
HTTP Server 2.0, the responsibility for creating and maintaining these server-pools has been
150
<version-number>
directives no longer exist; their functionality is now provided by a
Port
was set to some value other than 80, then append the port number to
directive.
with the version number for the
Listen 80
apache
in the 2.0

Advertisement

Table of Contents
loading

Table of Contents