#### AuthName 'Restricted Stuff' AuthType Basic AuthUserFile /export/home/WWW/username/secret_stuff require user user1 user2 ####The usernames do not have to exist in the system password file, and can be any string of characters.
/usr/bin/htpasswd -c /export/home/WWW/username/sercret_stuff/.htpasswd user1
/usr/bin/htpasswd /export/home/WWW/username/secret_stuff/.htpasswd user2
<Directory "/homeb/WWW/username/secret_stuff" > # Allow page to be password protected AllowOverride AuthConfig # Controls who can get stuff from this server. Order allow,deny Allow from all </Directory>
apachectl restartBearing in mind that people may be reading our web pages so be considerate when doing this.