Download 10.10 How to Uninstall the Red Hat Linux Secure

Transcript
256
Chapter 12:Configuring Your Secure Server
The server will look for the following file in the default directory:
/var/www/html/foo.html
If you want to change the DocumentRoot so that it isn’t shared by the secure and
the non-secure Web servers, see Section 12.3, Using Virtual Hosts.
12.1.29 Directory
<Directory /path/to/directory> and </Directory> tags are used to
enclose a group of configuration directives that are meant to apply only to that directory and all of its subdirectories. Any directive which is applicable to a directory may
be used within <Directory> tags. <File> tags can be used in the same way, to
apply to a specific file.
By default, very restrictive parameters are applied to the root directory, using the
Options (see Section 12.1.31, Options ) and AllowOverride (see Section
12.1.32, AllowOverride ) directives. Under this configuration, any directory on
your system which needs more permissive settings has to be explicitly given those
settings.
Using Location tags, the DocumentRoot (referred to as "/") is defined to have
less rigid parameters, so that HTTP requests can be served from it.
The cgi-bin directory is set up to allow the execution of CGI scripts, with
the ExecCGI option. If you need to execute a CGI script in another directory,
you’ll need to set ExecCGI for that directory. For example, if your cgi-bin
is /var/www/cgi-bin, but you want to execute CGI scripts from within
/home/my_cgi_directory, add an ExecCGI directive to a set of Directory directives like the following to your httpd.conf file:
<Directory /home/my_cgi_directory>
Options +ExecCGI
</Directory>
To allow CGI script execution in /home/my_cgi_directory, you’ll need to
take a few extra steps besides setting ExecCGI. You’ll also need to have the AddHandler directive uncommented to identify files with the .cgi extension as CGI