logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: .htpasswd and .htaccess
Author
wij32



Joined: 14 Dec 2006
Posts: 2

PostPosted: Thu 14 Dec '06 15:07    Post subject: .htpasswd and .htaccess Reply with quote

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

PostPosted: Thu 14 Dec '06 15:14    Post subject: Reply with quote

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


Reply to topic   Topic: .htpasswd and .htaccess View previous topic :: View next topic
Post new topic   Forum Index -> Apache