I prefer to have the domain names in a database mapped to a primary domain name or an application name. This allows me to have a UI to enter new domain names as they are needed (we add them pretty frequently).
That also allows you to write code to your web server to add bindings for each domain name to your web site. If your DNS server allows, then you can also automatically put in the DNS entry there. If you have a large MSOC system that frequently adds domain names then a little automation can go a long way. Steve >I usually use CFSWITCH and assign my own app names, which allows me to use >the built-in list nature of CFCASE values: > > ><cfswitch expresssion="#cgi.server_name#"> ><cfcase value="domain.com,www.domain.com"> > <cfset appName = "domain" /> ></cfcase> ><cfcase value="mydomain.com,www.mydomain.com"> > <cfset appName = "mydomain" /> ></cfcase> ><cfcase value="blog.domain.com"> > <cfset appName = "domainBlog" /> ></cfcase> ></cfswitch> > > >etc etc ... that way my onApplicationStart is basically mapping 1-to-1 with >my application config table, but I can throw as many domain variations at >it as I want to. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342405 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

