SunQuest
 
           Web Server Configuration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Server Configuration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old October 31st, 2004, 06:43 AM
Dj_OcTaGoN Dj_OcTaGoN is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 0 Dj_OcTaGoN User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
htpasswd and htaccess config

hello!

Im trying make my directory restriction work by using htpasswd and htaccess.
Im running Win XP and Apache 2.0.50 server.

The thing is I get asked for username/password when enter the directory, but the password doesnt work..
I have made the htpasswd file in ms-dos with the bin/htpasswd utility.

I have config the httpd file:
Code:
#AllowOverride controls what directive may be placed in .htaccess files.
#It can be "All", "None", or any combination of the keywords:
#	 Options FileInfo AuthConfig Limit
#
	 AllowOverride All

htpasswd file:
Code:
Dj_OcTaGoN:$apr1$X1......$c.ORqPwqeeE1drntjq25s1

htaccess file:
Code:
AuthUserFile /bin/.htpasswd
AuthGroupFile /dev/null
AuthName "Download Section"
AuthType Basic
require user valid-user


Im confused of the AuthUserFile path...should it be path from server root, webdirectory or home directory?
And another thing is, I got another htaccess file in the top root directory to prevent directory view of sites (Options -indexes)
does this affect this other htaccess file which i got in the passwd protected directory?
I dont know what Im doing wrong, I might be stupid but hey, im new into this!

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Server Configuration > htpasswd and htaccess config


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