Return-Path: Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 45452 invoked by uid 500); 25 Jul 2002 19:10:19 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 45431 invoked by uid 500); 25 Jul 2002 19:10:19 -0000 Delivered-To: apmail-httpd-2.0-cvs@apache.org Date: 25 Jul 2002 19:10:18 -0000 Message-ID: <20020725191018.48925.qmail@icarus.apache.org> From: rbowen@apache.org To: httpd-2.0-cvs@apache.org Subject: cvs commit: httpd-2.0/docs/manual/howto htaccess.html X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N rbowen 2002/07/25 12:10:18 Modified: docs/manual/howto htaccess.html Log: Submitted by: Michael Schroepl Typos, grammar, and phrasing corrections. Revision Changes Path 1.4 +13 -12 httpd-2.0/docs/manual/howto/htaccess.html Index: htaccess.html =================================================================== RCS file: /home/cvs/httpd-2.0/docs/manual/howto/htaccess.html,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- htaccess.html 25 Jul 2002 17:11:33 -0000 1.3 +++ htaccess.html 25 Jul 2002 19:10:17 -0000 1.4 @@ -18,15 +18,15 @@ @@ -105,9 +105,9 @@ FileInfo -

If you are unsure whether a particular diretive is permitted in a +

If you are unsure whether a particular directive is permitted in a .htaccess file, look at the documentation for that directive, and check - the Context line for ".htaccess"

+ the Context line for ".htaccess."

When (not) to use .htaccess files

@@ -141,9 +141,10 @@

Further note that Apache must look for .htaccess files in all higher-level directories, in order to have a full complement of - directives that it must apply. (See section on how directives are - applied, below.) Thus, if a file is requested out of a directory - /www/htdocs/example, Apache must look for the following files:

+ directives that it must apply. (See section on how + directives are applied.) Thus, if a file is requested out of + a directory /www/htdocs/example, Apache must look for the following + files:

/.htaccess
@@ -192,7 +193,7 @@ AllowOverride None
-

How directives are applied:

+

How directives are applied

The configuration directives found in a .htaccess file are applied to the directory in which the .htaccess file is found, and to all @@ -201,7 +202,7 @@ are applied in the order that they are found. Therefore, a .htaccess file in a particular directory may override directives found in .htaccess files found higher up in the directory tree. And those, in turn, may have - overriden directives found yet higher up, or in the main server + overridden directives found yet higher up, or in the main server configuration file itself.

Example:

@@ -224,7 +225,7 @@

Because of this second .htaccess file, in the directory - /www/htdocs/example1/example2, cgi execution is not permitted, as only + /www/htdocs/example1/example2, CGI execution is not permitted, as only Options Includes is in effect, which completely overrides any earlier setting that may have been in place.

@@ -263,7 +264,7 @@

Please see the authentication tutorial for a more complete discussion of authentication and authorization.

-

SSI example

+

Server side includes example

Another common use of .htaccess files is to enable Server Side Includes for a particular directory. This may be done with the following