From: Daniel Gruno Date: Sat, 12 May 2012 07:46:38 +0000 (+0000) Subject: Update access control examples to use 2.4 syntax. X-Git-Tag: 2.5.0-alpha~6828 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab68460fac6831453f00ed51ab9d2fed70a21589;p=thirdparty%2Fapache%2Fhttpd.git Update access control examples to use 2.4 syntax. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1337465 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/sections.xml b/docs/manual/sections.xml index 3e9fa1f8937..64373234009 100644 --- a/docs/manual/sections.xml +++ b/docs/manual/sections.xml @@ -112,9 +112,9 @@ module is designed for the use in test suites and large networks which have to deal with different httpd versions and different configurations.

-<IfVersion >= 2.1> +<IfVersion >= 2.4> # this happens only in versions greater or - # equal 2.1.0. + # equal 2.4.0. </IfVersion> @@ -176,8 +176,7 @@ of where it is found.

<Files private.html> - Order allow,deny - Deny from all + Require all denied </Files> @@ -194,8 +193,7 @@ directory.

<Directory /var/web/dir1> <Files private.html> - Order allow,deny - Deny from all + Require all denied </Files> </Directory> @@ -216,8 +214,7 @@ as any other requests starting with the /private string.

<LocationMatch ^/private> - Order Allow,Deny - Deny from all + Require all denied </Location> @@ -295,8 +292,7 @@ all user directories could look as follows:

at once:

<FilesMatch \.(?i:gif|jpe?g|png)$> - Order allow,deny - Deny from all + Require all denied </FilesMatch> @@ -336,8 +332,7 @@ For example, consider the following configuration:

<Location /dir/> - Order allow,deny - Deny from all + Require all denied </Location> @@ -404,8 +399,7 @@ will prevent the proxy server from being used to access the <Proxy http://www.example.com/*> - Order allow,deny - Deny from all + Require all granted </Proxy> @@ -562,15 +556,15 @@ other words, order of merging is important, so be careful!

<Location /> - Order deny,allow - Allow from all + Require all granted </Location> # Woops! This <Directory> section will have no effect <Directory /> - Order allow,deny - Allow from all - Deny from badguy.example.com + <RequireAll> + Require all granted + Require not host badguy.example.com + </RequireAll> </Directory>