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)
-   -   Apache question (https://gfy.com/showthread.php?t=977868)

nyllover 07-13-2010 04:16 PM

Apache question
 
Quick question...is there anyway to sync the htpasswd file of two domains, each hosted on its own ftp server?

Specifially, i would like users added to server "A" to be copied in server "B"... made the BIG mistake to put sites on two different servers...so CCBill can't help me here...

Varius 07-13-2010 04:21 PM

Pretty sure mod_auth only accepts a local file_path for AuthUserFile, so your best bet woud be to either mount a shared area on one server and have your htpasswd file be located in there, or use something like cronjob+rsync to sync them every 30-60 seconds or as often as you need it.

A more advanced method would be to use and configure mod_proxy for your site on one server to load as if it were located on the other.

TheDoc 07-13-2010 04:22 PM

That's a tough one, don't think so. However CCBill has mysql scripts you can use... I recommend you get both sites to use the same database then talk to your host on how they can sync the db's up.

EDepth 07-13-2010 04:24 PM

mysql based authentication would do the trick


All times are GMT -7. The time now is 03:37 AM.

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