.htaccess AuthConfig
by
Wyden Silvan
—
last modified
17.11.2009 10:33
Create .hpasswd file for users (you have to enter a password):
htpasswd -c /usr/lib/cgi-bin/.htusers USER
To add other users:
htpasswd /usr/lib/cgi-bin/.htusers USER2
.htacess File in your public folder
AuthType Basic AuthName "MY PRIVATE PAGE" AuthUserFile /usr/lib/cgi-bin/.htusers Require user MYUSER
Allow apache Server to override AuthConfig
vi /etc/apache2/sites-available/default .... <Directory "/usr/lib/cgi-bin"> AllowOverride AuthConfig ....
