File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes password protection --> .htaccess Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "password protection --> .htaccess" Watch "password protection --> .htaccess" New topic
Author

password protection --> .htaccess

Rocky Summers
Ranch Hand

Joined: Nov 07, 2003
Posts: 66
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

Joined: May 17, 2004
Posts: 107
Need answer for this old question too.

Any help?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: password protection --> .htaccess