That's almost exactly how we do it. We have 3000+ websites running off the
same codebase. 

-----Original Message-----
From: Rick Root [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 13, 2008 1:20 PM
To: CF-Talk
Subject: many sites, one codebase

I have a client who is running hundreds of web sites using the same code
base in subdirectories of the parent domain.

Example.  www.mydomain.com/site1/index.cfm and
www.mydomain.com/site2/index.cfm.

They are duplicating the entire file structure like this:

C:\inetpub\wwwroot\site1\index.cfm
C:\Inetpub\wwwroot\site2\index.cfm

EVERYHING under site1 and site2 is duplicated.

My first inclination is to make "site1" and "site2" virtual directories and
have all these virtual directories point to the same path.  Then the
application.cfm can get the unique site ID (currently hardcoded into each
application.cfm) from a database based on the cgi.path_translated or
cgi.script_name

Seem reasonable?  Alternatives?

--
Rick Root
New Brian Vander Ark Album, songs in the music player and cool behind the
scenes video at www.myspace.com/brianvanderark




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307432
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to