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
Section 5.41, “
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
Section 5.56, “
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.
5.23.
Options
The
Options
directive controls which server features are available in a particular directory. For
example, under the restrictive parameters specified for the root directory,
Options
is only set to
the
FollowSymLinks
directive. No features are enabled, except that the server is allowed to
follow symbolic links in the root directory.
By default, in the
DocumentRoot
directory,
Options
is set to include
Indexes
and
FollowSymLinks
.
Indexes
permits the server to generate a directory listing for a directory if no
DirectoryIndex
(for example,
index.html
) is specified.
FollowSymLinks
allows the server to
follow symbolic links in that directory.
Note
Options
statements from the main server configuration section need to be
replicated to each
VirtualHost
container individually. Refer to
Section 5.65,
“
VirtualHost
”
for more information.
5.24.
AllowOverride
The
AllowOverride
directive sets whether any
Options
can be overridden by the declarations
in an
.htaccess
file. By default, both the root directory and the
DocumentRoot
are set to allow
no
.htaccess
overrides.
Chapter 10. Apache HTTP Server
170
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: ......