|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Join Date: Feb 2003
Location: Canby, OR
Posts: 7,453
|
.htaccess question
Is it possible to list multiple .htpasswd files in a .htaccess, kindof like:
AuthType Basic AuthName Members AuthDBMUserFile /usr/local/htpasswd.db AuthDBMUserFile /usr/local/testing.db AuthGroupFile /dev/null require valid-user Would anybody know this? jDoG
__________________
NSCash now powering ReelProfits.com ALSO FEATURING: NSCash.com :: SoloDollars.com :: ReelProfits.com :: BiminiBucks.com :: VOD PROGRAMS COMING SOON: Greedy Bucks :: Vengeance Cash NOW OFFERING OVER 60 SITES CONTACT :: JAMES SMITH :: CHIEF TECHNOLOGY OFFICER :: ICQ (711385133) |
|
|
|
|
|
#2 |
|
So Fucking Banned
Join Date: Sep 2001
Location: shell beach
Posts: 7,938
|
well, you do actually have only one .htpasswd file, but more than just one user in it. this way you wouldn´t have to link it to a database.
... but I have no idea if you could actually link it to a database ... |
|
|
|
|
|
#3 |
|
Confirmed User
Industry Role:
Join Date: Dec 2001
Posts: 7,952
|
I dont believe you can do that.
But you can use a custom solution with mysql to accomplish what you want. |
|
|
|
|
|
#4 |
|
Confirmed User
Join Date: Nov 2002
Location: Awgtrade
Posts: 485
|
No, you can't, but there are tools that will combine two htpasswd files. Look around for that. Try cgi-resources.com
|
|
|
|
|
|
#5 |
|
Confirmed User
Join Date: Jan 2003
Location: NL
Posts: 342
|
there's an apache mod for that.. it's free and called mod_auth
do a search for it |
|
|
|
|
|
#6 | |
|
Confirmed User
Join Date: Jun 2002
Location: Seattle
Posts: 1,062
|
Quote:
JDog; No, you cannot have two different password databases for one directory. If you can, try to merge the two instead, or look at using mod_auth_mysql and doing some trickery with that instead. |
|
|
|
|
|
|
#7 | |
|
Confirmed User
Join Date: Jan 2002
Location: In the walls of your house.
Posts: 3,985
|
Quote:
__________________
"Every normal man must be tempted, at times, to spit on his hands, hoist the black flag, and begin slitting throats." --H.L. Mencken |
|
|
|
|
|
|
#8 |
|
Confirmed User
Join Date: Feb 2003
Location: Canby, OR
Posts: 7,453
|
Thanks for the reply's a couple understood it others didn't. I'm not using .htpasswd where the password file looks like:
user:encyptedpassword I'm using DBM files which is using the mod_dbmauth (or whatever the exact module is). What I'm trying to figure out is if there is a way that I could look into one password file for a username/password and if it isn't in that one, look to see if the username/password is valid in the second one, and the same for the third. This is why I'm doing this, I'm setting up three processors with MPA2. And I dont' want the processors to overwrite usernames! jDoG
__________________
NSCash now powering ReelProfits.com ALSO FEATURING: NSCash.com :: SoloDollars.com :: ReelProfits.com :: BiminiBucks.com :: VOD PROGRAMS COMING SOON: Greedy Bucks :: Vengeance Cash NOW OFFERING OVER 60 SITES CONTACT :: JAMES SMITH :: CHIEF TECHNOLOGY OFFICER :: ICQ (711385133) |
|
|
|
|
|
#9 | |
|
Confirmed User
Join Date: Jun 2002
Location: Seattle
Posts: 1,062
|
Quote:
All the different processors should assign unique random usernames in order to not create collisions. Having multiple identical usernames for the same site is a bad bad idea. |
|
|
|
|
|
|
#10 |
|
Confirmed User
Join Date: Aug 2001
Location: New Orleans
Posts: 1,680
|
http://forums.devshed.com/archive/15/2002/05/1/35020
Whenever I find myself considering a concept that can't be implemented, I realize it's time to go back and look at why I wanted to do it in the first place. Without fail, I've always realized I was looking for a solution to the wrong problem. In your specific case, you just need file locking, where only one process can update the .htpasswd file at a time. Anything else is going to cause you more headaches than you realize.
__________________
<CENTER><A HREF="http://www.hot-off-bourbon.com/" target="_blank"><IMG SRC="http://www.hot-off-bourbon.com/images/hob-logosmall.jpg" border="0"></A> <FONT face="Comic Sans MS" SIZE="-1"><I>Mardi Gras, Spring Break, Wet-T, Night Club Action, UpSkirt, Oil Wrestling, Voyeur</I></FONT></CENTER> |
|
|
|