Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

password protection --> .htaccess

 
Rocky Summers
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys. i have apache on windows xp. i was wondering how i can password protect a directory.. i tried looking up the net yesterday but couldn't configure it properly. i understand that i must have a .htaccess, .htpasswd, and configure my httpd.conf right? but i'm not doing it right somehow..
here's where my .htpassword file is:
c:\cpsc\servers\apache\bin\.htpasswd
here's where i want to put my .htaccess:
c:\cpsc\servers\apache\bin\htdocs\phpMyAdmin\
this is what my .htaccess looks like:
AuthUserFile /usr/local/apache/bin/.htpasswd
AuthGroupFile /dev/null
AuthName "Identity Required"
AuthType Basic
<Limit GET POST>
require valid-user
</Limit>
am i doing this right? what should i configure in my httpd.conf? i already did the .htpasswd using the executable in the bin foler.
thank you for your help
rocky
 
Steve Jiang
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Need answer for this old question too.

Any help?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic