Usecanonicalname; Documentroot; Directory - Red Hat ENTERPRISE LINUX 4.5.0 Reference Manual

Table of Contents

Advertisement

server. The
ServerName
the Web server may be
. The value specified in
foo.example.com
(DNS) name that can be resolved by the system — do not make something up.
The following is a sample
ServerName www.example.com:80
When specifying a
ServerName
the
file.
/etc/hosts
5.20.

UseCanonicalName

When set to
, this directive configures the Apache HTTP Server to reference itself using the
on
value specified in the
ServerName
the server instead uses the value used by the requesting client when referring to itself.
is set to
UseCanonicalName
5.21.

DocumentRoot

is the directory which contains most of the HTML files which are served in
DocumentRoot
response to requests. The default
servers, is the
/var/www/html
the following 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
servers, refer to
Section 8, "Virtual
5.22.

Directory

<Directory /path/to/directory>
enclose 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
tags.
By default, very restrictive parameters are applied to the root directory (
(refer to
Section 5.23, "
directives. Under this configuration, any directory on the system which needs more permissive
does not need to match the machine's actual hostname. For example,
, but the server's hostname is actually
www.example.com
ServerName
directive:
ServerName
, be sure the IP address and server name pair are included in
and
directives. When
Port
by default.
off
DocumentRoot
directory. For example, the server might receive a request for
so that it is not shared by the secure and the non-secure Web
Hosts".
and
</Directory>
") and
Options
AllowOverride
must be a valid Domain Name Service
UseCanonicalName
, for both the non-secure and secure Web
tags create a container used to
(refer to
Section 5.24, "
UseCanonicalName
is set to
off
Directory
), using the
/
Options
AllowOverride
169
,
")

Advertisement

Table of Contents
loading

Table of Contents