I'm stuck on getting these CF mappings to work.

In CF Admin, I have set up a logical path called '/articles/', and a
physical path of 'C:\Inetpub\wwwroot\test_domain1\literature\articles\'. I
am trying to access this directory from a different domain: test_domain2
(same box).

I set up a link to a file in this directory: <A
href="index.cfm/page/articles.#file_name#">

.and in my index.cfm I have the CF_INCLUDE line:

<CFINCLUDE template="#Replace(Attributes.page, ".", "/", "ALL")#.htm">

So when I have the url
http://www.test_domain2.com/index.cfm/page/articles.file0407.htm

.the index.cfm should map the 'articles' back to the
'C:\Inetpub\wwwroot\test_domain1\literature\articles\', and the filename
(file0407.htm) should be included. But its not working that way. Can
anyone see what's wrong here?

Thanks in advance,
David

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




----- Original Message -----
From: Dave Hannum
Subject: Re: CFINCLUDE and virtual directories
Date: Tue, 26 Feb 2002 10:48:19 -0800


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) path.
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
website (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 directory
in the first website (domain1) and a virtual directory in the second
(domain2). The mapping works fine -- I can access the same files from the
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.htm,
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 being
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


______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
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