From: Shawn K. <sha...@ea...> - 2007-06-20 07:05:33
|
Sending again ... I think this can be accomplished with tclhttpd provided that you have the site's names resolving to your server. Look at the env(REQUEST_URI) variable from within the root .tml and disambiguate the various requests. Once they have met your requirements use a Doc_Redirect to their actual home page. It's not a really easy problem to solve -- you'll need to manage the session state -- and set up multiple doc_roots for the various servers -- but I think it can be done. Shawn ----- Original Message ----- > From: "Jeff Smith" <hea...@ya...> > To: "Conrad Moolman" <cmo...@gm...>; > <tcl...@li...> > Sent: Tuesday, June 19, 2007 6:46 PM > Subject: Re: [Tclhttpd-users] tclhttpd-configure to set all client website > > >> What your are probably thinking of is a program called >> "HeadsUp" which uses TclHttpd and requires the browser >> to use a proxy.pac file. Checkout >> http://www.freewebs.com/headsup for more information. >> It was my very first attempt at programming so be >> warned! >> >> If I was going to do this kind of thing now, I would >> be looking at using a Squid Proxy Caching server and >> one of its new features, I think called "Session >> Helper". This allows you to redirect the first browser >> request based on IP address, Username etc. You may >> have to write a small database to keep track of the >> session info. I was thinking of using TclHttpd/Wub and >> a Metakit combo to do this myself but have not got >> around to it. This will only work if you make the only >> HTTP access to the Internet via Squid which means the >> browsers need to be configured to use a proxy. >> >> Kind Regards >> >> Jeff Smith >> >> --- Conrad Moolman <cmo...@gm...> wrote: >> >>> Hi, >>> >>> We are a small ISP,and we would like to setup the >>> following for our >>> clients.As soon as they open the browser,it must go >>> to our website,but any >>> new requests will go to the url they >>> entered.Basically we want to 'force' >>> the clients homepage to be our website. >>> >>> Someone told me that this can be achieved using >>> tclhttpd,but i do not have a >>> clue where to start.I know i must install tclhttpd >>> on a server and forward >>> all port 80 to this server.This is fine,i can do >>> this,but how will i >>> configure tclhttpd to manage this.If it is a new >>> request from a new >>> session,go to our website,otherwise go to the >>> intended url.Can tclhttpd do >>> this,or am i searching at the wrong place? >>> >>> So just to clarify,client opens his browser,it goes >>> to our website no matter >>> what his homepage is set to,but any new requests >>> gets passed on to the >>> intended url from the tclhttpd web server.Any help >>> or pointers will really >>> be appreciated. >>> >>> Thanks >>> Conrad Moolman >>> South Africa >>> > >> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by DB2 Express >>> Download DB2 Express C - the FREE version of DB2 >>> express and take >>> control of your XML. No limits. Just data. Click to >>> get it now. >>> http://sourceforge.net/powerbar/db2/> >> _______________________________________________ >>> TclHttpd-users mailing list >>> Tcl...@li... >>> >> https://lists.sourceforge.net/lists/listinfo/tclhttpd-users >>> >> >> >> >> >> ____________________________________________________________________________________ >> Sick sense of humor? Visit Yahoo! TV's >> Comedy with an Edge to see what's on, when. >> http://tv.yahoo.com/collections/222 >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> TclHttpd-users mailing list >> Tcl...@li... >> https://lists.sourceforge.net/lists/listinfo/tclhttpd-users > |