I’m going to assume that you don't have access to IIS to set custom
headers.  The way I've accomplished what you're trying to do is to take
a concept from Fusebox: pass everything through one file (like
index.cfm), and grab your content from a particular directory based on
the server name.

In your root application.cfm, set a variable based on cgi.server_name:

<cfif cgi.server_name EQ "www.somesite.com">
        <cfset thisSite = "somesite">
</cfif>

You'll have a directory called somesite under your root.  In your root
index.cfm:
<cfinclude template = "#thisSite#/app_#thisSite#.cfm">
<cfinclude template = "#thisSite#/index.cfm">

As you can probably guess, your index.cfm under "somesite" contains
switch/cases based upon some variable you pass in to handle all of your
logic (pretty classic Fusebox principle), and you have a file called
app_sitesite.cfm which serves the same purpose as application.cfm


This does have a lot of disadvantages - limited to Fusebox-like
development, limits you to .cfm pages, etc.  The real solution is to
shell out the $$$ for what you need.

---
Billy Cravens
HR Systems, EDS
[EMAIL PROTECTED]


-----Original Message-----
From: Mike Brunt [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, August 16, 2001 12:19 PM
To: CF-Talk
Subject: Multilpe Domains on a single IP IIS with no virtual directory
access


We have to set up a web site portfolio of 11 sites on a single IP with
no access to IIS 5.0 to create virtual directories/folders.  We need to
use normal fully qualified domain names that will be set up in DNS to
point to the one IP Address.  We are able to get mappings set up in CF
Admin and are able to create sub directories under our server root (this
is a hosting situation).  Any ideas on the best way to go about this?

Kind Regards - Mike Brunt
Tel: 562.790.8631
Instant Messaging Handles: -
AIM (AOL): MediaEmbee
MSN: [EMAIL PROTECTED]
Yahoo: MediaEmbeeYH
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to