![]() |
.htpasswd questions
Can you have more then one .htpasswd file in your root directory?
Can you have it like this: .htpasswd .htpasswd2 .htpasswd3 .htpasswd4 and so on... I want my sites (hosted on the same server) to use different .htpasswd files but I am not sure how to do this... I hope somebody understands my question... |
no you cant, why dont you just put all the rules in the same .ht file ?
also read this http://www.freewebmasterhelp.com/tutorials/htaccess/ |
Quote:
and location of each .htpasswd file. |
Yes you can. I have one of my servers setup that way. Just specify in your .htaccess where it should look for the password file.
|
ohh my bad, i thought he was asking if he could have different htaccess files, sorry.
|
Quote:
|
Agreed...
Quote:
|
Can someone post an example of a .htaccess file using more than one htpasswd file?
|
If you're asking if you can have multiple password files for the same DIRECTORY, then the answer is no. If you want to password protect multiple directories where each directory has it's own password file, then the answer is yes...you just put a .htaccess file in each directory, pointing at the appropriate password file.
http://httpd.apache.org/docs/1.3/howto/auth.html has good information... -- Bill |
here you go, this is what I use
---- AuthUserFile PWFILES=/var/www/virtual/passwords/passfiles.txt AuthGroupFile /dev/null AuthName "Members" AuthType Basic <limit GET PUT POST> require valid-user </limit> ---- Quote:
|
you can have multiple pass files for one directory. There are a couple ways to do it.
Quote:
|
All times are GMT -7. The time now is 02:27 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123