|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I'm having a problem with getting apache to take a user name and a password to let a person into a directory. This is what I have in my httpd.conf file (on the very bottom)
<Directory "c:/Apache/htdocs/members" > AuthName "Members Part" AuthType Basic AuthUserFile "c:/Apache/htdocs/passwd.htpasswd" Require valid-user </Directory> Then I go to a DOS prompt and go to c:/apache/bin(the folder that .htpasswd is in). There I type C:\Apache\bin>htpasswd -c c:/Apache/htdocs/members/passwd user Then it says "Automatically using MD5 format on Windows". Then I type and re-type in a password and it says "Adding password for user user". Then I try to go to my site (the protected part) but it won't take the password (or maybe it won't take the user name, hard to tell). And just to let you know, I am running Apache 1.3.20 for win32. Thanks a bunch for any help!! |
|
#2
|
|||
|
|||
|
First off, I don't know anything about Apache on win32.
>> AuthUserFile "c:/Apache/htdocs/passwd.htpasswd" You have told Apache your password to be named passwd.htpasswd and reside in c:/Apache/htdocs/ >> C:\Apache\bin>htpasswd -c c:/Apache/htdocs/members/passwd user You then used htpasswd to create a password at c:/Apache/htdocs/members/passwd and named "passwd" instead of "passwd.htpasswd". |
|
#3
|
|||
|
|||
|
Hey, that worked. Thanks a bunch!!
|
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Apache access problem (on win2k) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|