GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||
GeezerVison is showing httpd.apache.org — Configuration Files - Apache HTTP Server Version 2.4 Configuration FilesThis document describes the files used to configure Apache HTTP Server. Main Configuration Files ¶
Apache HTTP Server is configured by placing directives in plain text
configuration files. The main configuration file is usually called
The server also reads a file containing mime document types;
the filename is set by the Syntax of the Configuration Files ¶httpd configuration files contain one directive per line. The backslash "\" may be used as the last character on a line to indicate that the directive continues onto the next line. To be interpreted as such a continuation, there must be no other characters or white space between the backslash and the end of the line. Lines that begin with the hash character "#" are considered comments, and are ignored. Comments may not be included on the same line as a configuration directive, including at the start of a line that has been continued as described in the preceding paragraph. Commented lines may also be continued, meaning the next physical line is also interpreted as a comment because the logical line begins with a hash character. White space occurring before a directive is ignored, so you may indent directives for clarity. Blank lines are also ignored. Arguments to directives are separated by whitespace. If an argument contains spaces, you must enclose that argument in quotes. Quoting and EscapingEither double quotes ( Inside a quoted string, only two escape sequences are
recognized: Outside of quotes, backslashes have no special meaning and are treated as literal characters. The only exception is the line-continuation backslash at the very end of a line, as described above. Note that adjacent quoted strings with no whitespace between them are not concatenated — they are parsed as separate arguments. For example:
Some directives accept arguments that contain sub-expressions
with their own syntax, such as
Directives in the configuration files are case-insensitive, but arguments to directives are often case sensitive. The values of variables defined with the Only shell environment variables defined before the server is started
can be used in expansions. Environment variables defined in the
configuration file itself, for example with The maximum length of a line in normal configuration files, after variable substitution and joining any continued lines, is approximately 16 MiB. In .htaccess files, the maximum length is 8190 characters. You can check your configuration files for syntax errors
without starting the server by using You can use Modules ¶
httpd is a modular server. This implies that only the most
basic functionality is included in the core server. Extended
features are available through modules which can be loaded
into httpd. By default, a base set of modules is
included in the server at compile-time. If the server is
compiled to use dynamically loaded
modules, then modules can be compiled separately and added at
any time using the To see which modules are currently compiled into the server,
you can use the Scope of Directives ¶
Directives placed in the main configuration files apply to
the entire server. If you wish to change the configuration for
only a part of the server, you can scope your directives by
placing them in httpd has the capability to serve many different websites
simultaneously. This is called Virtual
Hosting. Directives can also be scoped by placing them
inside Although most directives can be placed in any of these sections, some directives do not make sense in some contexts. For example, directives controlling process creation can only be placed in the main server context. To find which directives can be placed in which sections, check the Context of the directive. For further information, we provide details on How Directory, Location and Files sections work. .htaccess Files ¶
httpd allows for decentralized management of configuration
via special files placed inside the web tree. The special files
are usually called To find which directives can be placed in
For more information on | ||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |