Two ways I can think of to handle this. First "tertiary domains" are just
subdomains, so there needs to be a dns entry for the subdomain. You can
create dns files with coldfusion or anything else, they are plaintext. There
may be something like this already built in the dev exchange.
A second option if you dont plan on actually using any of the subdomains for
anything other than the web site. Add an A record of  * to the domain and
point it to your web sites ip. Then you could parse the cgi.http_host to get
the subdomain.
<cfset myDomain = ".test.com">
<cfset subStr = replace(cgi.http_host, myDomain ,"","ONE")>

Here subStr will be your subdomain and now that you have it, you can do
whatever you want...

jon

----- Original Message -----
From: "Karl Simanonok" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, May 22, 2001 6:00 AM
Subject: Tertiary Domain Creation


> Some of you who subscribe to Shanje.com's inexpensive web hosting may have
> noticed how the Web Control Panel allows you to create tertiary domains on
> domains that you have installed there (for example the tertiary domain
> karl.simanonok.com is one of the domains under simanonok.com).  One nice
> thing about tertiary domains is that they don't cost anything extra, but
> they also can make cleaner URLs (karl.simanonok.com is much better than
> simanonok.com/karl in my opinion).
>
> Does anyone know how to create tertiary domains in code so that their
> generation can be done remotely as in Shanje.com's web control
> panel?  Please don't bother suggesting that I ask the owner of Shanje.com,
> I've already tried that and he doesn't want to share that knowledge.  I'm
> thinking it might require some kind of Java crapplet or maybe a COM object
> that ColdFusion can control.  Or maybe they reside in the registry and
> CFREGISTRY is used?  Has anyone done this before?
>
> Regards,
>
> Karl Simanonok
>
>
> Archives: http://www.mail-archive.com/[email protected]/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to