Posted on Sunday, 31st May 2009 by Balazs
Authentication in Apache is done through htaccess, either from the configuration file, or from the .htaccess file in a given directory. Note that only full directories can be easily protected with this method.
Here is how: (first log in to the shell, as this method only works if
you have shell access)
$ cd …/html/protected_dir
$ cat > .htaccess
AuthType [...]
Tags: Apache, htaccess, htpasswd
Posted in Technology | Comments (Comments)