From f810ccbc0a558500fb196d8b621a38af65dcac91 Mon Sep 17 00:00:00 2001 From: Joshua Slive Date: Tue, 23 Jul 2002 17:45:36 +0000 Subject: [PATCH] Introduce changes necessary to bring the remainder of the manual into xml. 1. Add a element to the manualpage DTD. This should give the path from the location of the page to the root of the manual directory. It is necessary for proper linking to directives, etc. 2. Add the stuff to common.xsl necessary to transform a . This is basically the minimum. It creates something VERY similar to what we had before (with the exception of a little css here and there). I very much hope that this will be improved soon to look nicer. 3. Add configuring.xml, which was written by Astrid Kessler. I made only a very few small changes to bring it in line with the current DTD. I have not yet committed the corresponding configuring.html.en, since I want to give people a little opporunity to comment on this stuff. My appologies, but I am committing a few style changes to common.xsl along with the substantial changes. That file is really hard to work with, and should probably be broken up. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96158 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/configuring.xml | 195 +++++++++++++++++++++++++++++++ docs/manual/style/build.xml | 11 ++ docs/manual/style/common.xsl | 160 +++++++++++++++++++++---- docs/manual/style/en.xml | 6 +- docs/manual/style/manualpage.dtd | 6 +- 5 files changed, 355 insertions(+), 23 deletions(-) create mode 100644 docs/manual/configuring.xml diff --git a/docs/manual/configuring.xml b/docs/manual/configuring.xml new file mode 100644 index 0000000000..2a05174328 --- /dev/null +++ b/docs/manual/configuring.xml @@ -0,0 +1,195 @@ + + + + + + + Configuration Files + + +

This document describes the files used to configure the Apache +HTTP server.

+
+ +
+ Main Configuration Files + + + mod_mime + + + IfDefine + Include + TypesConfig + + + +

Apache is configured by placing directives in plain text + configuration files. The main configuration file is usually + called httpd.conf. The location of this file is + set at compile-time, but may be overridden with the + -f command line flag. In addition, other + configuration files may be added using the Include directive. Any + directive may be placed in any of these configuration files. + Changes to the main configuration files are only recognized by + Apache when it is started or restarted.

+ +

New with Apache 1.3.13 is a feature where if any + configuration file is actually a directory, Apache will enter + that directory and parse any files (and subdirectories) found + there as configuration files. One possible use for this would + be to add VirtualHosts by creating small configuration files + for each host, and placing them in such a configuration + directory. Thus, you can add or remove VirtualHosts without + editing any files at all, simply adding or deleting them. This + makes automating such processes much easier.

+ +

The server also reads a file containing mime document types; + the filename is set by the TypesConfig directive, + and is mime.types by default.

+
+ +
+ Syntax of the Configuration Files + +

Apache configuration files contain one directive per line. + The back-slash "\" may be used as the last character on a line + to indicate that the directive continues onto the next line. + There must be no other characters or white space between the + back-slash and the end of the line.

+ +

Directives in the configuration files are case-insensitive, + but arguments to directives are often case sensitive. Lines + which begin with the hash character "#" are considered + comments, and are ignored. Comments may not be + included on a line after a configuration directive. Blank lines + and white space occurring before a directive are ignored, so + you may indent directives for clarity.

+ +

You can check your configuration files for syntax errors + without starting the server by using apachectl + configtest or the -t command line + option.

+
+ +
+ Modules + + + + mod_so + + + AddModule + ClearModuleList + IfModule + LoadModule + + + +

Apache 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 Apache. 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 LoadModule + directive. + Otherwise, Apache must be recompiled to add or remove modules. + Configuration directives may be included conditional on a + presence of a particular module by enclosing them in anIfModule block.

+ +

To see which modules are currently compiled into the server, + you can use the -l command line option.

+
+ +
+ Scope of Directives + + + + Directory + DirectoryMatch + Files + FilesMatch + Location + LocationMatch + VirtualHost + + + +

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 Directory, DirectoryMatch, Files, FilesMatch, Location, and LocationMatch + sections. These sections limit the application of the + directives which they enclose to particular filesystem + locations or URLs. They can also be nested, allowing for very + fine grained configuration.

+ +

Apache has the capability to serve many different websites + simultaneously. This is called Virtual + Hosting. Directives can also be scoped by placing them + inside VirtualHost + sections, so that they will only apply to requests for a + particular website.

+ +

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 + + + + AccessFileName + AllowOverride + + + +

Apache allows for decentralized management of configuration + via special files placed inside the web tree. The special files + are usually called .htaccess, but any name can be + specified in the AccessFileName + directive. Directives placed in .htaccess files + apply to the directory where you place the file, and all + sub-directories. The .htaccess files follow the + same syntax as the main configuration files. Since + .htaccess files are read on every request, changes + made in these files take immediate effect.

+ +

To find which directives can be placed in + .htaccess files, check the Context of the + directive. The server administrator further controls what + directives may be placed in .htaccess files by + configuring the AllowOverride + directive in the main configuration files.

+ +

For more information on .htaccess files, see + Ken Coar's tutorial on + Using .htaccess Files with Apache.

+
+
\ No newline at end of file diff --git a/docs/manual/style/build.xml b/docs/manual/style/build.xml index 22c2fdec36..7e7c8ac2da 100644 --- a/docs/manual/style/build.xml +++ b/docs/manual/style/build.xml @@ -30,5 +30,16 @@ + + + + diff --git a/docs/manual/style/common.xsl b/docs/manual/style/common.xsl index 8f201dcaaa..ade088b0ed 100644 --- a/docs/manual/style/common.xsl +++ b/docs/manual/style/common.xsl @@ -13,8 +13,16 @@ - - + + + + + + + + + + @@ -105,6 +113,62 @@ + + + + + + + + + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + + + + <xsl:value-of select="title"/><xsl:value-of + select="$messages/message[@name='apachetitle']"/> + + + + +
+
+ + +

+
+

+

+ + + +
    + +
+ +
+ +
+ +

+ + + + +
+ + @@ -112,7 +176,6 @@ - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX This file is generated from xml source: DO NOT EDIT @@ -165,31 +228,43 @@ - -

+ +

    - - + + -
  • +
  • - - -
  • + + +
-

+

-

+

  • @@ -254,6 +329,19 @@ + + + + + +
  • + +
    +
    +
  • +
    + @@ -418,7 +506,7 @@ - + @@ -427,12 +515,14 @@ - + + <> - - - <> - + + + <> + + <> @@ -443,11 +533,39 @@ - - , + + , + + + + + +


    + +


    + +
    +
    + + + +
    +
    +
    + + + +
    +
    +
    + + diff --git a/docs/manual/style/en.xml b/docs/manual/style/en.xml index 45b2a3cddb..08e4a1abd1 100644 --- a/docs/manual/style/en.xml +++ b/docs/manual/style/en.xml @@ -1,5 +1,5 @@ - ]> + ]> @@ -22,6 +22,10 @@ Module Identifier Compatibility + + Related Modules + Related Directives + Syntax Default diff --git a/docs/manual/style/manualpage.dtd b/docs/manual/style/manualpage.dtd index 8890f44559..61b4322e97 100644 --- a/docs/manual/style/manualpage.dtd +++ b/docs/manual/style/manualpage.dtd @@ -4,7 +4,11 @@ %common; - + + + + + -- 2.40.0