New in Apache HTTP Server 2.4 – Authorization, FCGI Proxy, and Mod_SSL

The authorization container directives <RequireAll>, <RequireAny> and <RequireNone> may be combined with each other and with the Require directive to express complex authorization logic.

The example below expresses the following authorization logic. In order to access the resource, the user must either be the superadmin user, or belong to both the admins group and the Administrators LDAP group and either belong to the sales group or have the LDAP dept attribute sales. Furthermore, in order to access the resource, the user must not belong to either the temps group or the LDAP group Temporary Employees.

<Directory /www/mydocs>

<RequireAll>

<RequireAny>

Require user superadmin
<RequireAll>

Require group admins
Require ldap-group cn=Administrators,o=Airius
<RequireAny>


Require group sales
Require ldap-attribute dept="sales"

</RequireAny>

</RequireAll>

</RequireAny>
<RequireNone>

Require group temps
Require ldap-group cn=Temporary Employees,o=Airius

</RequireNone>


</RequireAll>

</Directory>
Read More New in Apache HTTP Server 2.4 – Authorization, FCGI Proxy, and Mod_SSL

Advertisements

htaccess tips

htaccess Guide Sections htaccess tricks for Webmasters HTTP Header control with htaccess mod_php or php as a cgi with htaccess tips, htaccess php tricks SEO Redirects without mod_rewrite mod_rewrite tips and tricks with RewriteEngine, RewriteBase, RewriteRule, and RewriteCond Caching, cache-control, cache, expires, and optimizing htaccess htaccess from the Apache htaccess tutorial. Check out and use… Read More htaccess tips

htaccess and .htaccess rewrite links

Apache Documentation First, here are several links to the definitive source for Apache 1.3 and Apache 2.0 specifically related to using .htaccess, especially for redirecting URLs and blocking bad bots and spammers. Apache 1.3 Apache 1.3: Authentication, Authorization, and Access Control Apache 1.3: Module mod_access Apache 1.3: Module mod_rewrite URL Rewriting Engine Apache 1.3: Module… Read More htaccess and .htaccess rewrite links