I do something similar and just have a virtual directory set up in IIS.  The
data displayed is based on the variable part of the domain (ie the realtor's
name in your case). In my case, we don't have direct access to the DB on
this server for security reasons, so we are using xml files for the data
(don't like the solution, but with our security restrictions...not much of a
choice).  The logic determines the data directory to read the xml files.
You could do something similar to determine the id so that you are pulling
the right information for that specific realtor.  All of the sub domains
point to their virtual directory, which in turn physically points to the
same code.

Eric

/*-----Original Message-----
/*From: Rick Faircloth [mailto:[EMAIL PROTECTED]
/*Sent: Friday, June 13, 2008 9:19 AM
/*To: CF-Talk
/*Subject: Would someone check this for me?
/*
/*Hi, all...
/*
/*I'm trying to set up subdomains for real estate agents
/*using the same code, but session variables to customize
/*the template.
/*
/*I'm having partial success.  The problem seems to be with
/*the DNS settings.  However, some agent's sites come up fine,
/*while other error.
/*
/*Try this one:
/*
/*http://kristina.pierson.wsm-dev.com
/*or
/*http://bwheeler.wsm-dev.com
/*
/*Those should work.
/*
/*However, this one:
/*
/*http://alopez.wsm-dev.com
/*returns a resolve error, even though I can ping the domain
/*name 'alopez.wsm-dev.com' and get the correct IP.
/*
/*Specifically:
/*
/*Security: The requested template has been denied access to alopez.wsm-
/*dev.com.
/*The following is the internal exception message: access denied
/*(java.net.SocketPermission
/*alopez.wsm-dev.com resolve)
/*
/*The error occurred in E:\inetpub\webroot\c21-ar\agents\Application.cfm:
/*line 3
/*
/*1 :
/*2 :
/*3 : <CFAPPLICATION Name="c21ar_agents" SessionManagement="Yes"
/*SessionTimeOut="#CreateTimeSpan(0,1,0,0)#">
/*4 :
/*5 : <cfset dsn = "c21ar">
/*
/*
/*
/*This one:
/*
/*http://echance.wsm-dev.com is still not resolving with a ping,
/*so I think the DNS changes haven't had time to propogate.
/*
/*Any thoughts, anyone?
/*Could the session variables be a problem here?
/*
/*It just occurred to me that perhaps the CFAPPLICATION Name needs to be
/*dynamic so each agent's template has a different CFAPPLICATION Name?
/*(That doesn't seem correct...if it were, why would the first two example
/*site above work?)
/*
/*Thanks,
/*
/*Rick
/*
/*
/*

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307416
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to