From 2a463b3cd73c32ee9dcd508248d0194923f435f4 Mon Sep 17 00:00:00 2001
From: Stefan Fritsch
Related Modules | Related Directives |
---|---|
Related Modules | Related Directives |
---|---|
.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.
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> -
DocumentRoot
is /www/htdocs
..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);
//-->