5.25.
Order
The
Order
directive controls the order in which
allow
and
deny
directives are evaluated. The
server is configured to evaluate the
Allow
directives before the
Deny
directives for the
DocumentRoot
directory.
5.26.
Allow
Allow
specifies which client can access a given directory. The client can be
all
, a domain
name, an IP address, a partial IP address, a network/netmask pair, and so on. The
DocumentRoot
directory is configured to
Allow
requests from
all
, meaning everyone has
access.
5.27.
Deny
Deny
works similar to
Allow
, except it specifies who is denied access. The
DocumentRoot
is not
configured to
Deny
requests from anyone by default.
5.28.
UserDir
UserDir
is the subdirectory within each user's home directory where they should place personal
HTML files which are served by the Web server. This directive is set to
disable
by default.
The name for the subdirectory is set to
public_html
in the default configuration. For example,
the server might receive the following request:
http://example.com/~username/foo.html
The server would look for the file:
/home/username/public_html/foo.html
In the above example,
/home/username/
is the user's home directory (note that the default path
to users' home directories may vary).
Make sure that the permissions on the users' home directories are set correctly. Users' home
directories must be set to 0711. The read (r) and execute (x) bits must be set on the users'
public_html
directories (0755 also works). Files that are served in a users'
public_html
directories must be set to at least 0644.
5.29.
DirectoryIndex
The
DirectoryIndex
is the default page served by the server when a user requests an index of
a directory by specifying a forward slash (/) at the end of the directory name.
When a user requests the page http://
example
/
this_directory
/, they get either the
DirectoryIndex
page, if it exists, or a server-generated directory list. The default for
Allow
171
Summary of Contents for ENTERPRISE LINUX 4.5.0 -
Page 1: ...Red Hat Enterprise Linux 4 5 0 4 5 0 Reference Guide ISBN N A Publication date ...
Page 2: ...Red Hat Enterprise Linux 4 5 0 ...
Page 4: ...Red Hat Enterprise Linux 4 5 0 ...
Page 24: ...xxiv ...
Page 26: ......
Page 36: ...12 ...
Page 72: ...48 ...
Page 112: ...88 ...
Page 122: ...98 ...
Page 140: ...116 ...
Page 142: ......
Page 300: ...276 ...
Page 318: ...294 ...
Page 320: ......
Page 332: ...308 ...
Page 350: ...326 ...
Page 378: ...354 ...
Page 388: ...364 ...
Page 394: ...370 ...
Page 395: ...Part IV Appendixes ...
Page 396: ......