In the case of virtual sites or vhosts, CF will recognize the folder
specified in the config as the "webroot" for that "domain." That
applies to localhost or LAN-only accessible sites... i.e. I have my
server at http://apache1 and it has vhosts for product names...
http://sqlsurveyor is a vhost only accessible by LAN, and if I use /
in front of a path from within http://sqlsurveyor, it looks in the
folder specified in the apache config as serverRoot for that "domain
name."

Since aliases can't exist outside a server config of some sort, an
alias (apache) or a virtual directory (IIS) will look in the webroot
of the site to which it is attached.

Also, anything in {cfhome}\wwwroot will also be referenced at / so
it's not a bad place to put universally accessible things like
framework distros and so on.

Hope that helps.

J

On Wed, 16 Mar 2005 16:21:32 -0500 (EST), Cliff Meyers
<[EMAIL PROTECTED]> wrote:
> I was reading the documentation for "Specifying the CFC location" (
> http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/buildi45.htm) and
> wanted to pose a question.  If I'm accessing a web site via an "alias"
> (that's the Apache terminology) such as this:
> 
> http://www.test.com -> /sites/site1/
> http://www.test.com/otherdir -> /sites/site2/
> 
> What happens when ColdFusion searches "the web root" of my site?  Does it
> just calculate how many levels deep the URL looks to be from the web root,
> go up that number of directories, and then look for the CFC name or
> package path that I've specified?
> 
> -Cliff
> 


-- 
Continuum Media Group LLC
Burnsville, MN 55337
http://www.web-relevant.com
http://cfobjective.neo.servequake.com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:199066
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to