• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

password protection --> .htaccess

 
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
 
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Need answer for this old question too.

Any help?
 
F is for finger. Can you stick your finger in your nose? Doesn't that feel nice? Now try this tiny ad:
Enterprise-grade Excel API for Java
https://products.aspose.com/cells/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!