From 2a463b3cd73c32ee9dcd508248d0194923f435f4 Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Sat, 29 Mar 2014 21:56:19 +0100 Subject: Imported Upstream version 2.4.9 --- docs/manual/howto/htaccess.html.en | 42 ++++++++++++++------------------------ 1 file changed, 15 insertions(+), 27 deletions(-) (limited to 'docs/manual/howto/htaccess.html.en') diff --git a/docs/manual/howto/htaccess.html.en b/docs/manual/howto/htaccess.html.en index 4bea3ad2..1eb8132b 100644 --- a/docs/manual/howto/htaccess.html.en +++ b/docs/manual/howto/htaccess.html.en @@ -9,7 +9,7 @@ - @@ -43,7 +43,7 @@ changes on a per-directory basis.

top

.htaccess files

- +
You should avoid using .htaccess files completely if you have access to httpd main server config file. Using .htaccess files slows down your Apache http server. @@ -197,11 +197,9 @@ changes on a per-directory basis.

Section from your httpd.conf - file

-<Directory /www/htdocs/example>
+    file
<Directory /www/htdocs/example>
     AddType text/example .exm
-</Directory>
-    
+</Directory>

However, putting this configuration in your server configuration @@ -266,15 +264,13 @@ changes on a per-directory basis.

prevent script execution while allowing anything else to be set in .htaccess you can use:

-
-<Directory /www/htdocs>
+    
<Directory /www/htdocs>
     AllowOverride All
 </Directory>
 
 <Location />
     Options +IncludesNoExec -ExecCGI
-</Location> -
+</Location>
This example assumes that your DocumentRoot is /www/htdocs.
@@ -301,13 +297,11 @@ changes on a per-directory basis.

.htaccess file contents:

-
-AuthType Basic
+    
AuthType Basic
 AuthName "Password Required"
 AuthUserFile /www/passwords/password.file
 AuthGroupFile /www/passwords/group.file
-Require Group admins
-    
+Require Group admins

Note that AllowOverride AuthConfig must be in effect @@ -324,11 +318,9 @@ Require Group admins the following configuration directives, placed in a .htaccess file in the desired directory:

-
-Options +Includes
+    
Options +Includes
 AddType text/html shtml
-AddHandler server-parsed shtml
-    
+AddHandler server-parsed shtml

Note that AllowOverride Options and AllowOverride @@ -345,20 +337,16 @@ AddHandler server-parsed shtml the execution of CGI programs in a particular directory. This may be implemented with the following configuration:

-
-Options +ExecCGI
-AddHandler cgi-script cgi pl
-    
+
Options +ExecCGI
+AddHandler cgi-script cgi pl

Alternately, if you wish to have all files in the given directory be considered to be CGI programs, this may be done with the following configuration:

-
-Options +ExecCGI
-SetHandler cgi-script
-    
+
Options +ExecCGI
+SetHandler cgi-script

Note that AllowOverride Options and AllowOverride @@ -435,7 +423,7 @@ var comments_identifier = 'http://httpd.apache.org/docs/2.4/howto/htaccess.html' } })(window, document); //-->