Installation guide
Chapter 14. Apache HTTP Server 181
• LoadModule lines for modules packaged in their own RPMs (mod_ssl, php, mod_perl, and the
like) are no longer necessary as they can be found in the relevant file in the /etc/httpd/conf.d/
directory.
• The various HAVE_XXX definitions are no longer defined.
14.2.1.4. Other Global Environment Changes
The following directives have been removed from Apache HTTP Server 2.0’s configuration:
• ServerType — The Apache HTTP Server can only be run as ServerType standalone making
this directive irrelevant.
• AccessConfig and ResourceConfig — These directives have been removed since they mirror
the functionality of the Include directive. If you have AccessConfig and ResourceConfig
directives set then you need to replace these with Include directives.
To ensure that the files are read in the order implied by the older directives the Include directives
should be placed at the end of httpd.conf, with the one corresponding to ResourceConfig
preceding the one corresponding to AccessConfig. If you were making use of the default values
you will need to include them explicitly as conf/srm.conf and conf/access.conf.
14.2.2. Main Server Configuration
The main server configuration section of the configuration file sets up the main server, which responds
to any requests that are not handled by a VirtualHost definition. Values here also provide de-
faults for any
VirtualHost containers you may define.
The directives used in this section have changed little between Apache HTTP Server 1.3 and version
2.0. If your main server configuration is heavily customized you may find it easier to modify your
existing configuration to suit Apache 2.0. Users with only lightly customized main server sections
should migrate their changes into the stock Apache 2.0 configuration.
14.2.2.1. UserDir Mapping
The UserDir directive is used to enable URLs such as http://example.com/~jim/ to map to a
subdirectory within the home directory of the user jim, such as /home/jim/public_html. A side-
effect of this feature allows a potential attacker to determine whether a given username is present on
the system, so the default configuration for Apache HTTP Server 2.0 disables this directive.
To enable UserDir mapping, change the directive in httpd.conf from:
UserDir disable
to the following:
UserDir public_html
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/mod_userdir.html#userdir