Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 31st, 2001, 08:47 PM
WhyGog WhyGog is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: SC, USA
Posts: 2 WhyGog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to WhyGog
Question Apache access problem (on win2k)

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

Reply With Quote
  #2  
Old August 1st, 2001, 12:44 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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".

Reply With Quote
  #3  
Old August 1st, 2001, 04:45 PM
WhyGog WhyGog is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: SC, USA
Posts: 2 WhyGog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to WhyGog
Hey, that worked. Thanks a bunch!!

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Apache access problem (on win2k)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT