Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: .htpasswd and .htaccess |
|
Author |
|
wij32
Joined: 14 Dec 2006 Posts: 2
|
Posted: Thu 14 Dec '06 15:07 Post subject: .htpasswd and .htaccess |
|
|
Hey, after readig through many tutorials and previous posts on this forum i am still stick setting up basic auth. Maybe im overlooking something trivial but here goes:
1) used "htpasswd -c ../passwd/.htpasswd username" to set up the .htpasswd file in the passwd folder.
2) created a .htaccess file in the www root ( currently htdocs in apache), the following settings are present in this:
Code: |
AuthType Basic
AuthName "Members"
AuthUserFile "../passwd/.htpasswd"
Require valid-user
|
The AuthUserFile should look for the .htpasswd in the passwd folder.
Can anyone see whats wrong with this? Thanks in advance!
[/quote] |
|
Back to top |
|
wij32
Joined: 14 Dec 2006 Posts: 2
|
Posted: Thu 14 Dec '06 15:14 Post subject: |
|
|
sorry guys, just discovered the AllowOveride setting in httpd.conf
set this to "all" and now the basic auth appears, however, im trying to use the password i created using htpasswd and it doesnt work. Fails after 3 attempts and says it was incorrect, any ideas? |
|
Back to top |
|
|
|
|
|
|