add ldap sample --- https://www.pld-linux.org/packages/apache?rev=1377612613 +++ https://www.pld-linux.org/packages/apache @@ -14,8 +14,42 @@ ===== Upgrading ===== Detailed information about upgrading and all changes between apache 2.2 and 2.4 can be found [[https://httpd.apache.org/docs/2.4/upgrading.html|here]] + + as for more complex examples, require ip or password: + + <code apache Apache 2.x> + Order Deny,Allow + Deny from all + + Allow from my.lan + Allow from 2001:1234:5678::/64 + + AuthType Basic + AuthName www.my.lan + AuthBasicProvider ldap + AuthLDAPURL "ldap://server:389/ou=People,dc=example,dc=com?uid?sub?(objectClass=*)" + Require valid-user + + Satisfy Any + </code> + + The solution is very simple, just list the requirements and 2.4 somehow magically knows what you mean: + + <code apache Apache 2.4> + Require host my.lan + Require ip 2001:1234:5678::/64 + + AuthType Basic + AuthName www.my.lan + AuthBasicProvider ldap + AuthLDAPURL "ldap://server:389/ou=People,dc=example,dc=com?uid?sub?(objectClass=*)" + + Require valid-user + </code> + + Source: http://blog.hqcodeshop.fi/archives/63-Migrating-access-control-into-Apache-2.4.html ===== Apache 2.2 and 2.4 compatible configs ===== If you need to support both Apache 2.2 and 2.4, then, for example, if Apache 2.2 config contained: @@ -36,4 +70,6 @@ <IfModule mod_authz_core.c> Require all granted </IfModule> </code> + +
Diff URL: https://www.pld-linux.org/packages/apache?do=diff&r1=1377612613&r2=1393533263 -- This mail was generated by DokuWiki at https://www.pld-linux.org/ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
