
General Configuration Tips
335
remotehost rfc931 user date "request" status bytes referrer user-agent
DefaultIcon
DefaultIcon
specifies the icon displayed in server generated directory listings for files which have
no other icon specified. The
unknown.gif
image file is the default.
DefaultType
DefaultType
sets a default content type for the Web server to use for documents whose MIME
types cannot be determined. The default is
text/plain
.
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.
Directory
<Directory /path/to/directory>
and
</Directory>
tags create a container used to 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
Directory
tags.
By default, very restrictive parameters are applied to the root directory (
/
), using the
Options
(refer
to
Options
) and
AllowOverride
(refer to
AllowOverride
) directives. 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
Directory
container is configured for the
DocumentRoot
which
assigns less rigid parameters to the directory tree so that the Apache HTTP Server can access the
files residing there.
The
Directory
container can be also be used to configure additional
cgi-bin
directories for server-
side applications outside of the directory specified in the
ScriptAlias
directive (refer to
ScriptAlias
for more information).
To accomplish this, the
Directory
container must set the
ExecCGI
option for that directory.
For example, if CGI scripts are located in
/home/my_cgi_directory
, add the following
Directory
container to the
httpd.conf
file:
<Directory /home/my_cgi_directory> OExecCGI </Directory>
Next, the
AddHandler
directive must be uncommented to identify files with the
.cgi
extension as
CGI scripts. Refer to
AddHandler
for instructions on setting
AddHandler
.
For this to work, permissions for CGI scripts, and the entire path to the scripts, must be set to 0755.
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.
Содержание ENTERPRISE LINUX 5 - VIRTUAL SERVER ADMINISTRATION
Страница 22: ...xxii ...
Страница 28: ......
Страница 36: ...10 ...
Страница 40: ...14 ...
Страница 96: ...70 ...
Страница 116: ...90 ...
Страница 144: ...118 ...
Страница 146: ......
Страница 158: ...132 ...
Страница 165: ...Installing and Removing Packages 139 Figure 11 7 Installing and removing packages simultaneously ...
Страница 166: ...140 ...
Страница 172: ...146 ...
Страница 178: ......
Страница 228: ...202 ...
Страница 264: ...238 ...
Страница 318: ...292 ...
Страница 330: ...304 ...
Страница 388: ...362 ...
Страница 428: ...402 ...
Страница 452: ......
Страница 458: ...432 ...
Страница 476: ...450 ...
Страница 478: ...452 ...
Страница 494: ...468 ...
Страница 498: ...472 ...
Страница 530: ...504 ...
Страница 536: ...510 ...
Страница 544: ...Chapter 36 Log Files 518 Figure 36 7 Log file contents after five seconds ...
Страница 546: ......
Страница 550: ...524 ...
Страница 576: ......
Страница 584: ...558 ...
Страница 608: ......
Страница 776: ...750 ...
Страница 796: ...770 ...
Страница 800: ...774 ...
Страница 804: ......
Страница 806: ...780 ...
Страница 808: ...782 ...
Страница 816: ...790 ...
Страница 820: ...794 ...
Страница 822: ...796 ...
Страница 830: ...804 ...
Страница 836: ...810 ...
Страница 844: ...818 ...
Страница 848: ...822 ...