.htaccess doesn't work
Posted: 05 May 2010, 16:59
Hi all
I would like to protect a part of my website on my bubba2 with .htaccess because this seems to be the easiest way for me as a linux/unix dummie. i created a .htaccess file containing the following rows:
AuthName "Enter password"
AuthType Basic
AuthUserFile /.htpasswd
Require valid-user
the .htpasswd is in the same directory and contains the login data in
user:password
format.
I have switched on the AllowOverride option to "all" in Apache2 server and restarted it.
BUT: It won't work. I have tried different locations and paths for the .htpasswd without success.
Is there anyone who can help me on that issue?
I would like to protect a part of my website on my bubba2 with .htaccess because this seems to be the easiest way for me as a linux/unix dummie. i created a .htaccess file containing the following rows:
AuthName "Enter password"
AuthType Basic
AuthUserFile /.htpasswd
Require valid-user
the .htpasswd is in the same directory and contains the login data in
user:password
format.
I have switched on the AllowOverride option to "all" in Apache2 server and restarted it.
BUT: It won't work. I have tried different locations and paths for the .htpasswd without success.
Is there anyone who can help me on that issue?