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)
-   -   Need htaccess help! (https://gfy.com/showthread.php?t=734095)

WebTitan 05-17-2007 10:54 AM

Need htaccess help!
 
i have a directory that i need to protect, BUT have multiple password files that will give access to that directory. basicly a chat board for members of multiple websites so it needs to consult multiple password files for access.

anyone know if this can be done?

WebTitan 05-17-2007 11:31 AM

bump for some help ;)

WebTitan 05-17-2007 04:05 PM

aw come on...no body can help a brutha out?

directfiesta 05-17-2007 04:09 PM

Normally, it is the other way around :

4 or 5 sites sharing the same password file thru their respective .htaccess file...

Search, there must be a solution ... I have no time to do that search .. sorry.

Randyyy 05-17-2007 04:12 PM

bump for u man, takes a while to get responses

mortenb 05-17-2007 04:27 PM

are the websites on the same server? or in the same datacenter?

WebTitan 05-17-2007 04:34 PM

Quote:

Originally Posted by directfiesta (Post 12450316)
Normally, it is the other way around :

4 or 5 sites sharing the same password file thru their respective .htaccess file...

Search, there must be a solution ... I have no time to do that search .. sorry.

yeah, i spent a lot of last night searching with no luck so thought with the wealth of knowledge on this board, maybe someone here might have an answer ;)

WebTitan 05-17-2007 04:35 PM

Quote:

Originally Posted by mortenb (Post 12450439)
are the websites on the same server? or in the same datacenter?

yes, same server. couple of different drives, but same physical machine

mortenb 05-17-2007 04:40 PM

Then the easiest way would be to join all the htpasswd files into a new one for the forum. You could have a cronjob doing it every few minutes to keep the new file updated.

Something like "cat passfile1 passfile2 passfile3 passfile4 > newpassfile" and then have the htaccess for the forum point to newpassfile

WebTitan 05-17-2007 05:50 PM

Quote:

Originally Posted by mortenb (Post 12450500)
Then the easiest way would be to join all the htpasswd files into a new one for the forum. You could have a cronjob doing it every few minutes to keep the new file updated.

Something like "cat passfile1 passfile2 passfile3 passfile4 > newpassfile" and then have the htaccess for the forum point to newpassfile

might give this a try...any chance you know of a tutorial for something like this?

directfiesta 05-17-2007 06:00 PM

Quote:

Originally Posted by WebTitan (Post 12450751)
might give this a try...any chance you know of a tutorial for something like this?

for the cron job, if this could work, you can use rsync to keep the files " synced " ...

mortenb 05-17-2007 06:11 PM

Quote:

Originally Posted by WebTitan (Post 12450751)
might give this a try...any chance you know of a tutorial for something like this?

I don't know of any tutorials, but whoever does your coding for you should be able to set it up for you in less than 10 minutes.. It's pretty simple..

WebTitan 05-17-2007 06:24 PM

cool. thanks for the help guys! I really appreciate it

mortenb 05-17-2007 06:30 PM

Someday - and that day may never come - I'll call upon you to do a service for me. But until that day, accept this justice as a gift on my.... :1orglaugh

WebTitan 05-17-2007 07:05 PM

Quote:

Originally Posted by mortenb (Post 12450865)
Someday - and that day may never come - I'll call upon you to do a service for me. But until that day, accept this justice as a gift on my.... :1orglaugh

ok Don Corlone...:1orglaugh

Way3 05-17-2007 08:32 PM

I don't know if these will help you, but I thought I'd pass them along:

.htaccess tutorial
http://www.freewebmasterhelp.com/tutorials/htaccess/

.htaccess file generator
http://cooletips.de/htaccess/

Hope it helps you. Best of Luck! :)


All times are GMT -7. The time now is 10:23 AM.

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