Datasheet

“main” (Installation and Administration) 2004/6/25 13:29 page 538 #564
i
i
i
i
i
i
i
i
Port
Specifies the port on which Apache listens for queries. Usually, this is port
80, the default port for HTTP. Normally, this setting should not be changed.
One reason for letting Apache listen to another port may be the test of a
new version of a web site. In this way, the operational version of the web
site continues to be accessible via default port 80.
Another reason may be that you merely want to make pages available on
the intranet, as they contain information that is not intended for the public.
For this purpose, set the port to a value like 8080 and block external access
to this port by means of the firewall. In this way, the server can be protected
from external access.
Directory
This directive can be used to set the access permissions and other per-
missions for a directory. A directive of this kind also exists for the
DocumentRoot. The directory name specified here must be changed
whenever the DocumentRoot is changed.
DirectoryIndex
Here, determine for which files Apache should search to complete a URL
lacking a file specification. The default setting is index.html. For exam-
ple, if the client requests the URL http://www.xyz.com/foo/bar and
the directory foo/bar containing a file called index.html exists under
the DocumentRoot, Apache returns this page to the client.
AllowOverride
Every directory from which Apache delivers documents may contain a
file that can override the global access permissions and other settings for
this directory. These settings are applied recursively to the current direc-
tory and its subdirectories until they are overridden by another such file
in a subdirectory. Accordingly, settings specified in such a file are applied
globally if it is located in the DocumentRoot. Such files normally have the
name .htaccess, but this can be changed as described in Section 22.7.2 on
the facing page.
Use AllowOverride to determine if the settings specified in local files
may override the global settings. Possible values are None, All, and any
combination of Options, FileInfo, AuthConfig, and Limit. The
meanings of these values are described in detail in the Apache documen-
tation. The (safe) default setting is None.
538 22.7. Configuration