You need to map the includes from a physical path in the CF Administrator
:

Click on "Mappings" in your CF Administrator
Give the include a logical path and map it to the physical (directory) pa
th.

Voila - it works.

Dave


----- Original Message -----
From: "David Grabbe" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, February 26, 2002 1:48 PM
Subject: CFINCLUDE and virtual directories


I need to be able to CFINCLUDE files from a directory on a different webs
ite
(same server though).  In IIS I have set up a virtual mapping so the
directory in question is available to both websites -- as a real director
y
in the first website (domain1) and a virtual directory in the second
(domain2).  The mapping works fine -- I can access the same files from th
e
directory regardless of which domain I am under.

The kink comes in when I try to CFINCLUDE a file listed in the virtual
directory.  That is, I can access http://domain2.com/dir1/dir2/filename.h
tm,
but when I try to include that file in a template
(http://domain2.com/index.cfm/page/dir1.dir2.filename.htm) I get the
"template not found" error.  But this works fine when the directory is be
ing
accessed as a standard directory rather than a virtual directory
(http://domain1.com/index.cfm/page/dir1.dir2.filename.htm).

Has anyone run into this before?  What am I missing here?

Thanks bunches,
David

------------------------------------
David Grabbe
Manager, Information Systems
Church of the Great God
[EMAIL PROTECTED]
http://www.cgg.org



______________________________________________________________________
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to