...
Code Block | ||
---|---|---|
| ||
cd /home/www.krypton.com/shared.private
mkdir kalel
chmod 750 kalel
cd /home/www.krypton.com/shared.private
mkdir keys
cd keys
# Create the initial password file with the first user being kalel
htpasswd -c ./kalel-www.krypton.com.shared.private kalel
New password:
Re-type new password:
# Create addition accounts. Notice NO "-c"
htpasswd .htpasswd cclark |
Note |
---|
One caveat, this also prevents Apache's Index program from viewing the directory so you must know about the directory or put a link to the directory. Consider using .htaccess definition one level higher, but then it's easy to break.... hmmmm... |
...