Return to Snippet

Revision: 10720
at January 10, 2009 17:03 by endorfin


Initial Code
cd /this/dir/is/secure

### create .htpasswd
htpasswd -c .htpasswd user1

### add a new user
htpasswd .htpasswd user2

### .htaccess
AuthUserFile .htpasswd
AuthName "Ric's protected files"
AuthType Basic

Initial URL

                                

Initial Description

                                

Initial Title
Apache - Password protect a Directory

Initial Tags
htaccess, apache

Initial Language
Apache