GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   .htaccess question (https://gfy.com/showthread.php?t=685456)

natkejs 12-10-2006 11:50 AM

.htaccess question
 
Lets say a member logins to my site and I automatically wants him to be logged in to 2 or 3 of my other sites what do I do?

In our CARMA setup now we show the latest sets from various sites but it asks for logins to each site since they're not logged in to them.

Could someone point me in the right direction there?

DutchTeenCash 12-10-2006 11:53 AM

you could setup a cron that copies the htpasswd

psili 12-10-2006 12:05 PM

I've never tried it or heard about it, but if the sites are on the same server, can't you symlink the htpasswd files to point to just one?

And apologies on the above post if it's a dumb idea... just popped in the head.

natkejs 12-10-2006 12:05 PM

not sure how that would make the login box not appear once he logs in to one site and I display a picture on a whole different domain that he's not logged in to.

I was thinking about doing it by setting apache enviromental values and do the whole login process using PHP I'm afraid that would open up the entire members area except that one script doing the login.

am I wrong?

I'm not a noob to programming but I'm kinda new to Apache so bear with me

natkejs 12-10-2006 12:07 PM

Quote:

Originally Posted by psili (Post 11501353)
I've never tried it or heard about it, but if the sites are on the same server, can't you symlink the htpasswd files to point to just one?

And apologies on the above post if it's a dumb idea... just popped in the head.

they use the same htpasswd files that's not the problem, the problem is apache considers a login to be for one domain only. I want them to be able to login to domain 1 but get access to domain 2 and 3 also but not domain 4 and 5.

get the point?

DutchTeenCash 12-10-2006 12:08 PM

Quote:

Originally Posted by natkejs (Post 11501361)
they use the same htpasswd files that's not the problem, the problem is apache considers a login to be for one domain only. I want them to be able to login to domain 1 but get access to domain 2 and 3 also but not domain 4 and 5.

get the point?

youd need to code something for that, in fact theres a prg that does that I googled it long ago

cause any normal htpasswd login wont work like that

lemme c if i can find it

DutchTeenCash 12-10-2006 12:14 PM

hmm that wasnt different domains - wonder if thats possible without getting the login popup, even with synchronizing the servers

psili 12-10-2006 12:19 PM

Didn't realize apache thought password files were for different domains... Apologies. I checked a couple of htpasswd files and it looks like it's only username:password and the password file location is defined in the virtual host. Thought all that would take is a central password file pointed to by the virtual hosts.

Guess I should try shit before I post about it. Again, here's a bump and good luck.

natkejs 12-10-2006 01:11 PM

well I'll keep searching, thanks for all the suggestions guys and I'll post again if I find a solution. but I suspect I'd have to write a custom apache module or something for it.


All times are GMT -7. The time now is 09:25 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123