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 08-03-2003, 03:36 PM   #1
solonline
Confirmed User
 
Join Date: Jan 2003
Location: EU-
Posts: 718
htaccess joy

just wondering if its possible to authenticate 2 .htpasswd files from the same .htaccess,

so normally it reads from 1
AuthUserFile /home/httpd/somesite.com/cgi-bin/data/.htpasswd

but is there a way to link to 2 .htpasswd files located in differnt directories in the cgi dump.

any help will make my life happier tonite

solonline is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-03-2003, 05:12 PM   #2
fiveyes
Confirmed User
 
Join Date: Aug 2001
Location: New Orleans
Posts: 1,680
This seems to be a question that comes up regularly. The htaccess specification allows only one named htpasswd file. The reason for this is simplicity, as soon as you allow two or more htpassword files, you'd have people wanting different ways of using them. Such as allowing access if the user name is one or the other htpasswd file (OR), in both files (AND) or in one but not the other (XOR).

Since this is a fact (outside of a few exotic, unofficial modules that have been written that claim to get around this limitation), you need to find a solution that basically accomplishes the same.

If it's simply a matter of having two groupings of users; where one has access to one section, the other group to another and both groups have access to a third; then simply have your registration program enter the UserName:Password combination to the appropriate htpasswd file as well as to the third, for-everyone, password file. Any other solutions are based on that, using the registration script to include the access combinations in the appropriate files.
__________________
<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>
fiveyes is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-03-2003, 05:13 PM   #3
foe
Confirmed User
 
Join Date: May 2002
Location: CT
Posts: 5,246
happy happy joy joy
foe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-03-2003, 05:14 PM   #4
foe
Confirmed User
 
Join Date: May 2002
Location: CT
Posts: 5,246
or make a program that would take two password files merge them and save them as one.
foe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-03-2003, 05:28 PM   #5
Ice
Confirmed User
 
Ice's Avatar
 
Join Date: Nov 2002
Location: Sunny California
Posts: 26,053
this link was posted on GFY the other day.... should do everything your asking

http://www.paysitepowertools.com/
__________________
icq 1904905
Ice is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-03-2003, 05:29 PM   #6
fiveyes
Confirmed User
 
Join Date: Aug 2001
Location: New Orleans
Posts: 1,680
Another solution is using the htgroup file. This makes for a more complex registration program as well but you basically have one htpasswd file for everything. Then you have a htgroup file that defines which users are in which user groups ("groupname1: user1 user2 user3 ..."). Finally, in your htaccess files, instead of specifying "require valid-user" you'd use "require group groupname1 [groupname2]*" (where groupname2, and more, are optional).

This is a sorthand usage of "require user1 user2 user2 ..." and can be quite powerful for defining access to different parts of the document tree.
__________________
<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>
fiveyes is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-03-2003, 06:09 PM   #7
solonline
Confirmed User
 
Join Date: Jan 2003
Location: EU-
Posts: 718
:stoned

k...thanks for replys, its 3am here and im half blind with all this now. Sleep then work...
anyone else tried paysite power tools ?
solonline is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-03-2003, 07:12 PM   #8
some_idiot
Confirmed User
 
Join Date: May 2002
Location: Doesn't matter, I'm not buying you another pint!
Posts: 1,511
What you didn't hit me up on ICQ for this?

I was the last one to give a detailed on this here...

There's always a way, little custom C/C++ tweaks to your
Apache and rebuild.

I suspect your setup is going to require questions in more
of a research/beta forum than here. Most of these guys run
100 sites on 1 server, not 1 site on many servers.
(well, 95% of the people here don't even own or even
physically seen the server their site is on)
__________________

This AVS pays my mortgage!
some_idiot 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.