Web Hosting Talk







View Full Version : htpasswd


kmurrey
02-23-2002, 08:58 PM
Is there a user database already set up or do you have to create one?

From reading tha apache note it says it should be in the:

/usr/local/etc/httpd

But I do not have one of those directories. I know I can create one - but is that the right thing to do?

____________________________
Keith

Chicken
02-23-2002, 09:45 PM
There's already a user auth file set up, but I don't have access to a RaQ now so I can't find where they put it. If you just want to set up a protected area for any user on the server, this .htaccess would work (key wording is in bold):

order allow,deny
allow from all
require valid-user
Authname 'Restricted Directory'
Authtype Basic


For a particular user on the server:

order allow,deny
allow from all
require user username
Authname 'Restricted Directory'
Authtype Basic


Example for you, the server admin:

order allow,deny
allow from all
require user admin
Authname 'Restricted Directory'
Authtype Basic


Not that I'm sure this is what you are trying to do, so none of this might apply...

kmurrey
02-23-2002, 10:09 PM
Exactly what I was doing... thanks Chicken.


Hey - you still owe me that email on the autosetup stuff...

________________________________
Keith

Chicken
02-24-2002, 12:51 AM
Yikes, I'll try to find that email (or you can resend it). I have a ton of emails in too many folders to go through, my apologies. I'm not sure what I can help you with on that front however, i don't have any info on those set up scripts, don't and never did use any of them, so you may want to post the question to the forum.

*tries to think of what the email said* :confused: