What's the environment? In IIS you can give sites custom HTTP headers, which you could use to store a siteID.
Then you use the ID to query the DB and the site specific settings. One code base that way, any changes you make would update all the sites at once. Or you could have something in your application.cfm or application.cfc that looks at cgi.server_name like you said, but then you would have to update a list of the sites, with the HTTP headers you would add the ID when you first set up the web site in IIS, and never have to worry about it again. > -----Original Message----- > From: Rick Faircloth [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 21, 2006 2:54 PM > To: CF-Talk > Subject: SOT: What's the best way to handle this? > > Hi, all. > > I'm building my multi-domain CMS system where > I have a custom website on the front, a multi-user > CMS in the middle, and an individual database on the backend. > > My question is: What's the best way to get the user > to the CMS? CNAME? Masked Forwarding? > > Let's say the user has the domain bodafordhomes.com. > > Could I set up a CNAME Alias called SiteManager.BodafordHomes.com > that would go to my CMS, called "RESM.WhiteStoneMedia.com"? > > Can CNAME's be used that way? Or would I have to use masked forwarding > to go to a completely different domain, in this case, from > bodadfordhomes.com > to whitestonemedia.com? > > Ideally, I would be able to setup a CNAME for each domain that would use > the CMS and simply route the CNAME to my CMS for whatever domain is > using it. I would have a query on RESM.WhiteStoneMedia.com that would > check the CGI.Server_Name and assign appropriate variables based on the > domain name used. > > Thoughts? Suggestions? > > Rick > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264820 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

