Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Need help with ,htaccess and .htpasswd implementation.
Old 11-16-2002, 10:23 PM Need help with ,htaccess and .htpasswd implementation.
Junior Talker

Posts: 3
Trades: 0
Howdie. I'm a newbie to this forum so if I am posting to the wrong thread, please feel free to direct me to the proper thread for my question(s).

I am "trying" to implement .htaccess on a specific directory which will eventually contain some personal documents. I have had some "luck" with the .htaccess portion ... meaning when I attempt to access the specific directory I get the pop-up window asking for User Name and password. While I have created a password file (using the Password Generator that was available at one of the many sites I read), what I have implemented does NOT work correctly. I enter my User Name and the password, but I get a login failure, etc.

I'm guessing I've got either the path to the password file (.htpasswd) incorrect, but do not know for sure. On a temporary basis I put the .htpasswd file in the same directory as the .htaccess file. I don't think this is necessary a good idea, but am doing so now because I am first trying to get it to work and understand the overall mechanism.

Sorry I'm long winded here, but here is what my .htaccess file looks like:

"AuthUserFile /www/htdocs/documents/.htpasswd
AuthGroupFile /dev/null
AuthName "Dirigo's Documents"
AuthType Basic

require user Bo
require user Dirigo"

and then I have a .htpasswd file that contains Bo and Dirigo with the corresponding encrypted passwords.

I'm missing something here for sure, but have no idea at this point what. I've read a number of web sites, but ... I'm still missing something, right?

If possible, would someone be kind enough to point me to the "clearest tutorial" they've ever read or give me a simple example of how the two should be set up in order to accomplish my basic quest here.

No, I don't know much about Apache and found their web site full of stuff, but not too easy on my frustrated brain!

Thanks in advance.
Dirigo is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-17-2002, 08:39 AM
david's Avatar
King Spam Talker

Posts: 1,314
Location: Glasgow, UK
Trades: 0
You could try changing:
require user Bo
require user Dirigo

to:

Require valid-user

I would also remove the:
AuthGroupFile /dev/null

if you don't think you'll need to do group-based authentication.

If that doesn't work, take a look at:
http://www.freewebmasterhelp.com/tutorials/htaccess/3
which has got some more details.
__________________

Please login or register to view this content. Registration is FREE
- Everything a webmaster needs - for free

Please login or register to view this content. Registration is FREE
- Free web hosts reviewed and rated

Please login or register to view this content. Registration is FREE
- Impartial hosting directory - Add your host today for FREE
david is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Need help with ,htaccess and .htpasswd implementation.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.12324 seconds with 12 queries