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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 02-20-2004, 12:11 PM   #1
sumpra
Registered User
 
Join Date: Jun 2003
Posts: 39
.htaccess

is there a way to use 2 password files with .htaccess's Basic Authentication ?
sumpra is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-20-2004, 12:18 PM   #2
icedemon
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
icedemon is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-20-2004, 12:31 PM   #3
GoodChris
Confirmed User
 
GoodChris's Avatar
 
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
GoodChris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-20-2004, 12:41 PM   #4
liquidmoe
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.
__________________

Take Luck!
liquidmoe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-20-2004, 05:56 PM   #5
sumpra
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.


sumpra is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-20-2004, 06:51 PM   #6
directfiesta
Too lazy to set a custom title
 
directfiesta's Avatar
 
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 ....
directfiesta is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-20-2004, 06:53 PM   #7
swedguy
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.
swedguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-20-2004, 06:54 PM   #8
JDog
Confirmed User
 
Join Date: Feb 2003
Location: Canby, OR
Posts: 7,453
Quote:
Originally posted by sumpra
is there a way to use 2 password files with .htaccess's Basic Authentication ?
Nope, you don't know the countless hours I've spent trying this and there is just no way!

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)
JDog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-20-2004, 08:14 PM   #9
icedemon
Confirmed User
 
Join Date: Jun 2003
Location: Lutz, FL
Posts: 1,022
Quote:
Originally posted by sumpra
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.


They use the same password file. I haven't had problems with using multiple processors with one password file (4 different processors). iBill should remove usernames when the expire.

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
icedemon is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-20-2004, 09:33 PM   #10
OG LennyT
Wall Street Pimp
 
OG LennyT's Avatar
 
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.
OG LennyT is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.