You are here: Home Linux Webserver .htaccess AuthConfig
Search
Advanced Search…
E-Mail

Webmail: webmail.wyden.com

E-Mail Preferences: postfix.wyden.com/users

E-Mail Administration: postfix.wyden.com

Statistics
Total: 463
Total Pages: 284
Total Folders: 87
Total Files: 18
Total Links: 26
Last modification: 03.02.2012 16:00
 

.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
....