This should work in Coldfusion
Put this in the very top of your Application.cfm or Application.cfc in the root of your site.
<cfswitch expression="#CGI.Server_Name#">
<cfcase value="domain1.com,www.domain1.com" delimiters=",">
<cfinclude template="/domain1/#cgi.script_name#">
<cfabort>
</cfcase>
<cfcase value="domain2.com,www.domain2.com delimiters=",">
<cfinclude template="/domain2/#cgi.script_name#">
<cfabort>
</cfcase>
<cfdefaultcase>
</cfdefaultcase>
</cfswitch>
|
OR. If you want to host subdomains, get a Linux or Windows VPS and you can host all of the domains you want.
