Apache Reference Manual (9)

PidFile directive
Syntax: PidFile filename
Default: PidFile logs/httpd.pid
Context: server config
Status: core
The 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 (/) then it is assumed to be relative to the ServerRoot. The PidFile is only used in standalone mode.
It is often useful to be able to send the server a signal, so that it closes and then reopens its ErrorLog and TransferLog, and re-reads its configuration files. This is done by sending a SIGHUP (kill -1) signal to the process id listed in the PidFile.
The PidFile is subject to the same warnings about log file placement and security.
--------------------------------------------------------------------------------
Port directive
Syntax: Port number
Default: Port 80
Context: server config
Status: core
Number is a number from 0 to 65535; some port numbers (especially below 1024) are reserved for particular protocols. See /etc/services for a list of some defined ports; the standard port for the http protocol is 80.
The Port directive has two behaviors, the first of which is necessary for NCSA backwards compatibility (and which is confusing in the context of Apache).
In the absence of any Listen or BindAddress directives specifying a port number, a Port directive given in the "main server" (i.e., outside any <VirtualHost> section) sets the network port on which the server listens. If there are any Listen or BindAddress directives specifying :number then Port has no effect on what address the server listens at.
The Port directive sets the SERVER_PORT environment variable (for CGI and SSI), and is used when the server must generate a URL that refers to itself (for example when creating an external redirect to itself). This behaviour is modified by UseCanonicalName.
In no event does a Port setting affect what ports a VirtualHost responds on, the VirtualHost directive itself is used for that.

时间: 2024-07-29 12:35:07

Apache Reference Manual (9)的相关文章

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 (4)

<DirectoryMatch>Syntax: <DirectoryMatch regex> ... </DirectoryMatch> Context: server config, virtual hostStatus: Core.Compatibility: Available in Apache 1.3 and later <DirectoryMatch> and </DirectoryMatch> are used to enclose

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