GeeCON Prague 2014*
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


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
 
GeeCON Prague 2014
 
subject: .htaccess and .htpasswd