|
I think I see what you want to do, have different servers accessing the same copy of a htpasswd file. Yes?
If so, you could have each server have a CGI script that would accept a UserName:Password pair and write to the local htpasswd file. Then you'd need a script that would use LWP:UserAgent to "broadcast" a new user for all the sites to add. There are a number of problems that come up with this approach, such as one server timing out in the chain, numerous security issues and the difficulty in correctly file locking across multiple systems, to name three of the most obvious.
Much better would be to update a single htpasswd file and use rsync to mirror it regularly to the other sites. Of course the simplest, most fool-proof, solution is to have all the domains on one box and simply use one htpasswd file for them all.
__________________
<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>
|