![]() |
![]() |
![]() |
||||
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 |
Registered User
Join Date: Jun 2003
Posts: 39
|
.htaccess
is there a way to use 2 password files with .htaccess's Basic Authentication ?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Jun 2003
Location: Lutz, FL
Posts: 1,022
|
I don't know of a way of doing it. What is the reason for using two password files?
__________________
Clips4Sale.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Jun 2002
Location: Montreal
Posts: 454
|
There is a way to do it fairly simply if the 2 files are on the same server. ICQ me if you need it done. 20090489
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Mar 2002
Location: NY
Posts: 4,994
|
Dont believe the standard mod_auth allows you to use two different files and merg them together, but there is a mod_auth that allows multiple htpasswd files to be used, you declare each on a separate line. Dont recall if it was an entirely freeware module or not, just remember installing it on some servers.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Registered User
Join Date: Jun 2003
Posts: 39
|
How do some web sites use multiple processors ? i mean, don't they use seperate password files for each processor?
If i were to use ibill and epoch at the same time, and added users of ibill to the same .htpasswd file, wouldnt that cause problems? esp since ibill does not automatically remove usernames.. i want to use seperate password file for ibill subscribers so i can easily track them to see which one is active which one is cancelled, while the epoch one is smoothly working on its own. ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Too lazy to set a custom title
Industry Role:
Join Date: Oct 2002
Location: Montreal, Quebec
Posts: 29,676
|
No, they write to the same file thru their respective cgi script.
__________________
I know that Asspimple is stoopid ... As he says, it is a FACT ! But I can't figure out how he can breathe or type , at the same time .... |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Industry Role:
Join Date: Jan 2002
Posts: 7,981
|
You can setup a simple cron job to merge x amount of files in to 1 password file
*/5 * * * * cat /path/to/.htpasswd1 /path/to/.htpasswd2 > /path/to/.newhtpasswd That will merge .htpasswd1 and .htpasswd2 to .newhtpasswd every 5 minutes. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Confirmed User
Join Date: Feb 2003
Location: Canby, OR
Posts: 7,453
|
Quote:
I've tried mod_rewrite along with mod_auth and nothing has EVER worked, don't waste your time, it's not worth it! 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 2003
Location: Lutz, FL
Posts: 1,022
|
Quote:
You could modify the cgi scripts that epoch and ibill gave you so that a username is added into it's own file and then merges the ibill and epoch file togather for the members area. That way ibill and epoch will have it's own file for you to keep track of, but there will be one file for your members area to look at. There is a problem in that if the same username gets added to both files and then they are merged togather. One of your members won't be able to get access. Both epoch and ibill should check the password file to see if there is already a username before adding it.
__________________
Clips4Sale.com |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Wall Street Pimp
Industry Role:
Join Date: Jun 2003
Location: Phoenix, AZ
Posts: 14,345
|
short and simple, multiple processors=same password file but custom cgis writing to password file for each company.
I know some of you guys already resolved this but I want to make it sound simple as possible.
__________________
Tradeking - my online broker | 4.95 a trade | make real $$ |
![]() |
![]() ![]() ![]() ![]() ![]() |