• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

.htaccess and .htpasswd

 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I solved it...let me know if you face the same problem.
 
Sheriff
Posts: 4012
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


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
 
I guess I've been abducted by space aliens. So unprofessional. They tried to probe me with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic