Red Hat ENTERPRISE LINUX 3 Reference Manual page 161

Hide thumbs Also See for ENTERPRISE LINUX 3:
Table of Contents

Advertisement

Chapter 10. Apache HTTP Server
When specifying a
ServerName
file.
/etc/hosts
10.5.19.
UseCanonicalName
When set to
, this directive configures the Apache HTTP Server to reference itself using the value
on
specified in the
ServerName
server instead uses the value used by the requesting client when referring to itself.
UseCanonicalName
10.5.20.
DocumentRoot
The
DocumentRoot
response to requests. The default
is the
/var/www/html
document:
http://example.com/foo.html
The server looks for the following file in the default directory:
/var/www/html/foo.html
To change the
DocumentRoot
refer to Section 10.8 Virtual Hosts.
10.5.21.
Directory
Directory /path/to/directory
close a group of configuration directives which apply only to a specific directory and its subdirectories.
Any directive which is applicable to a directory may be used within
By default, very restrictive parameters are applied to the root directory (
to Section 10.5.22
Options
rectives. Under this configuration, any directory on the system which needs more permissive settings
has to be explicitly given those settings.
In the default configuration, another
which assigns less rigid parameters to the directory tree so that the Apache HTTP Server can access
the files residing there.
The
container can be also be used to configure additional
Directory
side applications outside of the directory specified in the
10.5.40
ScriptAlias
To accomplish this, the
For example, if CGI scripts are located in
container to the
Directory
Directory /home/my_cgi_directory
Options +ExecCGI
/Directory
Next, the
AddHandler
CGI scripts. Refer to Section 10.5.55
, be sure the IP address and server name pair are included in the
and
directives. When
Port
is set to
by default.
off
is the directory which contains most of the HTML files which are served in
DocumentRoot
directory. For example, the server might receive a request for the following
so that it is not shared by the secure and the non-secure Web servers,
) and
AllowOverride
Directory
for more information about the
container must set the
Directory
httpd.conf
directive must be uncommented to identify files with the
AddHandler
UseCanonicalName
for both the non-secure and secure Web servers
and
/Directory
(refer to Section 10.5.23
container is configured for the
ScriptAlias
ScriptAlias
ExecCGI
/home/my_cgi_directory
file:
for instructions on setting
is set to
tags create a container used to en-
tags.
Directory
), using the
/
Options
AllowOverride
DocumentRoot
directories for server-
cgi-bin
directive (refer to Section
directive).
option for that directory.
, add the following
.cgi
AddHandler
143
, the
off
(refer
) di-
extension as
.

Advertisement

Table of Contents
loading

Table of Contents