> Is there any way to configure (add/modify/delete) the IIS
> host headers using CF?
>
> The goal is to create "virtual" URL domains without actually
> having physical directories/folders or sub-domains. As an example:
>
> URLs:
>
> www.mydomain.com/?id=1 or www.mysite.com/?id=2
>
> clientname1.mydomain.com/?id=1
>
> clientname2.mydomain.com/?id=2
>
> all points to the same IP.
>
> And all created (modified or deleted) using the CF app, when
> client info is added or changed in the db.
Why not just have a single wildcard DNS entry going to one IIS virtual
server, then use CF at runtime to determine which hostname was used, by
looking at CGI.HTTP_HOST?
<cfswitch expression="#CGI.HTTP_HOST#">
<cfcase value="clientname1.mydomain.com">
...
</cfcase>
<cfcase value="clientname2.mydomain.com">
...
</cfcase>
<cfdefaultcase>
...
</cfdefaultcase>
</cfswitch>
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244698
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54