I create three types of path variables
url_ (aka http://#cgi.server_name/yadda/)
cf_ (aka /webroot/mysite/)
dir_ (aka #getbasetemplatepath())
so i have url_root and cf_root and dir_root and url_images and url_includes
and dir_filestorage etcetc
request.path.url_root, actually.
I also cache them in the application scope and duplicate them to the
request scope.
as for the cf mapping.. there has to be one to base your cf_root path off
of.. usually there's a mapping created like "/" = "c:\webroot\"
At 08:21 PM 7/10/01 +0800, you wrote:
>Hi Tim,
>
>I ran into this problem recently - I would have assumed that when an ISP set
>up an account, they would also create a mapping for the account root, but
>apparently not. I'm not sure why, but I would love to know, so if anyone
>could elaborate...?
>
>I have started using a request variable to store the full path for
>cfincludes etc. That way you only need to change one var when you deploy.
>You could even go so far as to conditionally set the path based on the
>cgi.server_name or something like that, but I'm lazy :)
>
>K.
>
>
> > -----Original Message-----
> > From: Tim Price [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, 10 July 2001 4:12 PM
> > To: Fusebox
> > Subject: Fusebox/CF mappings to virtual web servers
> >
> >
> > Has anyone had expereince of changing the request scope and CF mappings of
> > an application that was developed in a directory structure i.e
> > c:/inetpub/wwwroot/mysite, with the relevant fusebox and CF mappings and
> > then moved to a server that has multiple sites defined as virtual
> > sites and
> > therfore all refering to their own virtual /root ?
> > How can you do a CF mapping or is it best not to define virtual sites ?
> >
> > Any help would be appreciated
> >
> > Tim
> >
> >
> >
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists