<DirectoryMatch>
Syntax: <DirectoryMatch regex> ... </DirectoryMatch>
Context: server config, virtual host
Status: Core.
Compatibility: Available in Apache 1.3 and later
<DirectoryMatch> and </DirectoryMatch> are used to enclose a group of directives which will apply only to the named directory and sub-directories of that directory, the same as <Directory>. However, it takes as an argument a regular expression. For example:
<DirectoryMatch "^/www/.*/[0-9]{3}">
would match directories in /www/ that consisted of three numbers.
See Also: <Directory> for a description of how regular expressions are mixed in with normal <Directory>s.
See also: How Directory, Location and Files sections work for an explanation of how these different sections are combined when a request is received
--------------------------------------------------------------------------------
DocumentRoot directive
Syntax: DocumentRoot directory-filename
Default: DocumentRoot /usr/local/apache/htdocs
Context: server config, virtual host
Status: core
This directive sets the directory from which httpd will serve files. Unless matched by a directive like Alias, the server appends the path from the requested URL to the document root to make the path to the document. Example:
DocumentRoot /usr/web
then an access to http://www.my.host.com/index.html refers to /usr/web/index.html.
There appears to be a bug in mod_dir which causes problems when the DocumentRoot has a trailing slash (i.e., "DocumentRoot /usr/web/") so please avoid that.
--------------------------------------------------------------------------------
ErrorDocument directive
Syntax: ErrorDocument error-code document
Context: server config, virtual host, directory, .htaccess
Status: core
Override: FileInfo
Compatibility: The directory and .htaccess contexts are only available in Apache 1.1 and later.
Apache Reference Manual (4)
时间: 2024-10-03 18:33:50
Apache Reference Manual (4)的相关文章
Apache Reference Manual (11)
ServerRoot directiveSyntax: ServerRoot directory-filenameDefault: ServerRoot /usr/local/apacheContext: server configStatus: coreThe ServerRoot directive sets the directory in which the server lives. Typically it will contain the subdirectories conf/
Apache Reference Manual (2)
AuthName directiveSyntax: AuthName auth-domainContext: directory, .htaccessOverride: AuthConfigStatus: coreThis directive sets the name of the authorization realm for a directory. This realm is given to the client so that the user knows which usernam
Apache Reference Manual (9)
PidFile directiveSyntax: PidFile filenameDefault: PidFile logs/httpd.pidContext: server configStatus: coreThe PidFile directive sets the file to which the server records the process id of the daemon. If the filename does not begin with a slash (/) th
Apache Reference Manual (5)
<FilesMatch>Syntax: <FilesMatch regex> ... </FilesMatch>Context: server config, virtual host, .htaccessStatus: coreCompatibility: only available in Apache 1.3 and above.The <FilesMatch> directive provides for access control by file
Apache Reference Manual (1)
Apache Core FeaturesThese configuration parameters control the core Apache features, and are always available.AccessConfig directiveSyntax: AccessConfig filenameDefault: AccessConfig conf/access.confContext: server config, virtual hostStatus: coreThe
Apache Reference Manual (3)
ContentDigest directiveSyntax: ContentDigest on|offDefault: ContentDigest offContext: server config, virtual host, directory, .htaccessOverride: OptionsStatus: experimentalCompatibility: ContentDigest is only available in Apache 1.1 and laterThis dir
Apache Reference Manual (8)
MaxRequestsPerChild directiveSyntax: MaxRequestsPerChild numberDefault: MaxRequestsPerChild 0Context: server configStatus: coreThe MaxRequestsPerChild directive sets the limit on the number of requests that an individual child server process will han
Apache Reference Manual (6)
KeepAliveTimeout directiveSyntax: KeepAliveTimeout secondsDefault: KeepAliveTimeout 15Context: server configStatus: CoreCompatibility: KeepAliveTimeout is only available in Apache 1.1 and later.The number of seconds Apache will wait for a subsequent
Apache Reference Manual (10)
Satisfy directiveSyntax: Satisfy 'any' or 'all'Default: Satisfy allContext: directory, .htaccessStatus: coreCompatibility: Satisfy is only available in Apache 1.2 and laterAccess policy if both allow and require used. The parameter can be either 'all