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 07-14-2003, 06:13 AM   #1
uptowno
owner
 
Industry Role:
Join Date: Apr 2002
Location: dc
Posts: 165
multi password file

i need a script that can write to multi htacess password files on different servers, can anyone point me to site that has one. I remember seeing one a while back but can't remember what site it was on.


thanks
uptowno is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-14-2003, 09:42 AM   #2
fiveyes
Confirmed User
 
Join Date: Aug 2001
Location: New Orleans
Posts: 1,680
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>
fiveyes 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.