This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes General Computing and the fly likes .htaccess and .htpasswd Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » General Computing
Bookmark ".htaccess and .htpasswd" Watch ".htaccess and .htpasswd" New topic
Author

.htaccess and .htpasswd

Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Hi
I have a created the files .htaccess and .htpasswd for webfolder.
Its nicely prompts the below dialog box

but when i enter the correct username and password, its just keep displaying the above dialog box again??

I have generated .htpasswd using this tool. ?

Could someone please point me what i am doing wrong?

I am using a unix(free bsd) server.

Thank you.
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
I solved it...let me know if you face the same problem.
Pauline McNamara
Sheriff

Joined: Jan 19, 2001
Posts: 4012
    
    6
Hi Balaji. I've had that problem, but it usually happens when I've forgotten the correct password.

So what was the problem after all?
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150

Hi Balaji. I've had that problem, but it usually happens when I've forgotten the correct password.



So what was the problem after all?


Its a path problem,intially i gave it like
AuthUserFile .htpasswd
then i gave the full path like
AuthUserFile /home/guest/balajidl/public_html/protectedfolder/.htpasswd
it worked.
I guess AuthUserFile ./.htpasswd will also work

I guess i am eating lot of Windows.

Thanks Pauline
 
wood burning stoves
 
subject: .htaccess and .htpasswd
 
Similar Threads
I'd like to write an HTTP Authentication script...
password protection --> .htaccess
How to select text in a Custom JSpinner
restricting access to pages
closing Modal dialog box