Travel

Categories

MS Internet Explorer and Apache custom error 404 page

If you are making a Apache custom error 404 page, make sure the custom error 404 page is > 512 bytes as MS Internet Explorer will display his own error page instead of yours if the Apache custom error 404 page is < 512 bytes.

See

http://www.devshed.com/c/a/Apache/Custom-Error-Pages-with-Apache/

configure mod_auth_mysql on self-compiled Apache 2.2.x

Recently I have a need to configure a web directory to have user authentication to access its content. The simplest way is to use .htaccess + htpasswd. However,the requirement specified that the user should be able to change their assigned password later. This requirement make me can’t use the traditional file based authentication (password hard-coded […]

Sample .htaccess for mod_authnz_ldap/mod_auth_ldap for apache

AuthName “Pls login with your username and password” AuthType Basic AuthBasicProvider ldap AuthLDAPURL “ldap://ldap.abc.edu.hk:389/dc=abc,dc=edu,dc=hk?uid” AuthzLDAPAuthoritative off Allow from mynetwork/24 Deny from all Satisfy Any Require valid-user

This .htaccess will ask the user to enter the usernanme and password when connecting from outside mynetwork/24

Still working on how to do a posix group based authentication, however […]