Red Hat ENTERPRISE LINUX 3 Reference Manual page 163

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

Advertisement

Chapter 10. Apache HTTP Server
The name for the subdirectory is set to
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,
users' home directories may vary).
Make sure that the permissions on the users' home directories are set correctly. Users' home direc-
tories must be set to 0711. The read (r) and execute (x) bits must be set on the users'
directories (0755 also works). Files that are served in a users'
to at least 0644.
10.5.28.
DirectoryIndex
The
DirectoryIndex
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
is
DirectoryIndex
either of these files and returns the first one it finds. If it does not find one of these files and
is set for that directory, the server generates and returns a listing, in HTML format, of the
Indexes
subdirectories and files within the directory, unless the directory listing feature is turned off.
10.5.29.
AccessFileName
names the file which the server should use for access control information in each
AccessFileName
directory. The default is
Immediately after the
file beginning with a
which begin with
.ht
10.5.30.
CacheNegotiatedDocs
By default, the Web server asks proxy servers not to cache any documents which were negotiated on
the basis of content (that is, they may change over time or because of the input from the requester). If
CacheNegotiatedDocs
cache documents.
10.5.31.
TypesConfig
names the file which sets the default list of MIME type mappings (file name exten-
TypesConfig
sions to content types). The default
, the recommended way to add MIME type mappings is to use the
/etc/mime.types
directive.
For more information about
public_html
/home/username/
is the default page served by the server when a user requests an index of a
page if it exists or a server-generated directory list. The default for
and the
index.html
.
.htaccess
AccessFileName
. These directives deny Web access to any
.ht
) for security reasons.
is set to
, this function is disabled and proxy servers are allowed to such
on
TypesConfig
, refer to Section 10.5.54
AddType
in the default configuration. For example, the
is the user's home directory (note that the default path to
public_html
index.html.var
directive, a set of
Files
file is
/etc/mime.types
directories must be set
type map. The server tries to find
tags apply access control to any
files (or other files
.htaccess
. Instead of editing
.
AddType
145
public_html
Options
AddType

Advertisement

Table of Contents
loading

Table of Contents