Index: [Article Count Order] [Thread]

Date:  Fri, 07 Mar 2008 16:23:52 -0600
From:  Scott Hayes <shayes (at mark) officetracker.com>
Subject:  [coba-e:12187] Re: Modifying Index.html page when creating   new accounts Help
To:  coba-e (at mark) bluequartz.org
Message-Id:  <200803072252.m27MqvBG017685 (at mark) raq.officetracker.com>
In-Reply-To:  <47D1AE15.1080600 (at mark) dogsbody.org>
References:  <200803061919.m26JJEvL023718 (at mark) raq.officetracker.com> <047e01c87fd5$61d50090$6700a8c0 (at mark) OfficeKen> <200803071506.m27F61Lr021760 (at mark) raq.officetracker.com> <47D1AE15.1080600 (at mark) dogsbody.org>
X-Mail-Count: 12187

Dan,

Thanks for the input, I know in can have my script replace the 
content of the index.html file but I need to have a trigger for the 
script to run when a new site is created. The user will never modify 
the index.html since they will not have access to the box.

Does anyone know where the site creation script is located?

Thanks again Dan for your thoughts.

Scott

At 03:05 PM 3/7/2008, you wrote:

>>Here is what I'm trying to do, when I create a new site I want to 
>>create and index.html file that is a redirect to another ip address 
>>with a port number that is generated using a script that can read a 
>>file that contains a list of currently used port number is a 
>>series. ie: start with say port 8001 and then add 1 to make the 
>>next one 8002 and so on. I want to use this to map accounts to 
>>virtual sites on another machine. My thought was to modify the 
>>script/scripts that do the token replacement in the current 
>>index.html file that is created when a site is created. Any help 
>>would be great.
>
>Just an idea and apologies for not answering your question but in 
>true linux style there is more than one way to skin a cat :-p
>
>Instead of editing the index.html which the customer is probably 
>going to replace anyway how about having your script write a 
>Redirect command into each sites 
>/etc/httpd/conf/vhosts/siteXX.include file?  Something like...
>
>   Redirect 301 /console http://11.11.11.11:8001/
>
>The script can then do a `/etc/rc.d/init.d/httpd reload` when it 
>changes a file.
>
>The advantage of this is there will always be a way for usera to get 
>to your remote server without having to remember their port number 
>and if your remote server ever moves you can quickly change 
>everyone's redirects.
>
>Oh and you then easily change the /etc/skel/... file so that it 
>points all sites to their /console redirect too!
>
>Just an idea.
>
>Dan
>