> On our webserver we use CF for our CMS. I order to make life
> easier for us developers we map / to point at the root if htdocs
> and saves us the hassle of using relative paths.
>
> Now if we are running virtual servers how do we make it so
> that within each site /etcetc will always point at the root?
You can only have one root mapping (/) in the CF Administrator. However, you
have other options. You can use relative paths instead of absolute paths for
your CFINCLUDE and CFMODULE tags, and that isn't really much of a hassle.
Alternatively, you can create a mapping for each application. Finally, you
could arrange your directory structure so that you map the root to a parent
directory, and place each virtual server in a subdirectory of that parent.
For example, you might have a directory structure like this:
c:\inetpub\svr1root
c:\inetpub\svr2root
You could map the root slash to c:\inetpub\, then in your CFINCLUDE and
CFMODULE tags, you could specify a TEMPLATE attribute with a slash and the
name of the virtual server's directory.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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