Htaccess Guide

htaccess is a very ancient configuration file that controls the Web Server running your website, and is one of the most powerful configuration files you will ever come across. .htaccess has the ability to control access of the WWW‘s HyperText Transfer Protocol (HTTP) using Password Protection, 301 Redirects, rewrites, and much much more. This is… Read More Htaccess Guide

HTACCESS Rewrite for alternate Development Favicon

Htaccess Rewrites can be super easy and super helpful. Alternate Favicons For developers with a production AND a development environment, it can be useful to be able to quickly differentiate which site you are currently working on just by glancing at the favicion.   HTACCESS Rewrite for Development Favicon #=======[ Separate favicons for development vs… Read More HTACCESS Rewrite for alternate Development Favicon

Redirecting Links from Uppercase to Lowercase with .htaccess

Want to redirect all links with any uppercase characters to lowercase using pure mod_rewrite within an .htaccess file? Sure why not! OR how to use RewriteMap and mod_speling for those with access to httpd.conf Htaccess to Redirect Uppercase to Lowercase This should go at the very top of your .htaccess file. At least it should… Read More Redirecting Links from Uppercase to Lowercase with .htaccess

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