On Thursday, Sep 18, 2003, at 12:23 US/Pacific, Ian Skinner wrote:
> Is not #expandpath("/")# supposed to return the absolute directory of
> the
> webroot that the template is in?
It will return the ColdFusion document root, not the IIS document root.
For many people, those are the same but for many others, those are not.
ColdFusion doesn't know about the IIS document root, only its own.
For example, our (Apache) web server document root is:
/data/www/sites/www.macromedia.com/docs/
But out ColdFusion document root is:
/data/www/appserver/cfmx/wwwroot/
And, in most cases for us, these are on different servers.
> I have used constructs such as this many times since CF4.5 days.
And if your CF and IIS document roots both point to the same directory
then expandPath("/") will give you the IIS document root (because
that's the same as the CF document root).
> it returned the absolute path of the
> CF stand-alone web server webroot ("c:/cfusionMX") by default I
> believe. A
> directory that the template was not in, or any templates for that
> matter.
So CF must still have had some configuration to say that "/" was mapped
to that directory.
> I also remember, finding a technote the discussed this, and modifying
> an XML
> file to correct the behavior. Basically something about the default
> order
> of searches when multiple web roots exits, or something along those
> lines.
Yup, sounds likely.
> I thought disabling the stand-alone server would solve this problem,
> but it
> has not.
Correct, because the mapping still exists to c:\cfusionmx\ and that was
taking precedence over the mapping you needed. Sounds like you fixed it
by adding a new virtual-mapping? That probably changed the search order
for multiple web roots...
Sean A Corfield -- http://www.corfield.org/blog/
"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm?link=i:4:137701
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
http://www.cfhosting.com