Short answer - yes.

Long answer - Think of physical directories under the web root and virtual
directories set up in the web server (thinking of IIS here) as directories
to be used in HTML, such as <a href=""> and <img src="">.  Think of CF
mappings as only available to CF code, such as <cfinclude> and <cfmodule>.
In fact, in <cfinclude> and <cfmodule>, if you want an absolute reference
(starting with "/"), then you can only use CF mappings.  Without CF mappings
you must use relative references ("../../", etc.).  One nice thing about CF
mappings is you can move included CF files out of the web root and then
noone can access them via the browser . . . it makes security easier.

HTH,
Dan

-----Original Message-----
From: Peter Theobald [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 14, 2000 5:35 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: RE: CF Administrator Mapping and Apache Alias


<html>
<font size=3>How about virtual servers?<br>
If I set up a CF mapping, for instance: /includes =
/home/httpd/html/docs/www.thissite.com/includes<br>
Then do *ALL* sites on that server get the SAME include (to the wrong
site in most cases).<br>
<br>
<br>
At 07:09 PM 8/14/00 -0400, Peter Theobald wrote:<br>
<blockquote type=cite cite>So you are saying it does not affect URL
requests at all, right?<br>
It only affects CFINCLUDE?<br>
<br>
Your example can't be right. You are using the mapping as a variable
&quot;#foo#/SomeTemplate.cfm&quot;<br>
If that were right, I wouldn't need mapping at all. I would just set a
variable.<br>
It must be more like this:<br>
<br>
MAP /cflib = /usr/home/coldfusion/library/peter<br>
<br>
&lt;cfinclude template=&quot;/cflib/myfile.cfm&quot;&gt;<br>
<br>
<br>
At 06:56 PM 8/14/00 -0400, Jeremy Allen wrote:<br>
<blockquote type=cite cite>All mappings do is create an alias for a
phsyical directory...<br>
<br>
like say if you wanted an absolute reference for CFINCLUDE<br>
<br>
you could make a mapping named Foo which points to
/usr/home/cftagman/cftags<br>
<br>
And say you had a lot of templates in /usr/home/cftagman/cftags then
you<br>
could use<br>
<br>
&lt;CFINCLUDE Template=&quot;#foo#/SomeTemplate.cfm&quot;&gt; and
Sometemplate.cfm<br>
would of course be in the D:\CFStuff directory.<br>
<br>
Thats all :)<br>
<br>
Its purely CF driven and referenced with CF basically its a nice<br>
way to map out the absolute location for something.&nbsp; of course<br>
NT machines start with drive letters ;) So I would say that a<br>
that the Apache alias takes higher precedence than the CF<br>
Mapping.<br>
<br>
Jeremy Allen<br>
[EMAIL PROTECTED]<br>
[Insert cool title here]<br>
<br>
<br>
-----Original Message-----<br>
From: Peter Theobald
[<a href="mailto:[EMAIL PROTECTED]"
eudora="autourl">mailto:[EMAIL PROTECTED]</a>]<br>
Sent: Monday, August 14, 2000 6:38 PM<br>
To: [EMAIL PROTECTED]<br>
Subject: CF Administrator Mapping and Apache Alias<br>
<br>
<br>
What exactly does CF Administrator mapping do?<br>
Does it map URLs as they come in, in other words it affects ALL http
requests even to .html files?<br>
Or does it map URLs that are to .cfm files?<br>
Or does it only affect CFINCLUDE?<br>
<br>
How does it interact with Apache directory &quot;Alias&quot;
mapping?<br>
<br>
I want to map certain directories for images and cfm files. I also want a
different set of mappings for my CF library of includable
&quot;functions&quot; so I can use &lt;cfinclude
template=&quot;/cflib/mymodule.cfm&quot;&gt; although that file is NOT
located under my document root.<br>
<br>
<br>
<br>
----------------------------------------------------------------------
-----<br>
Peter Theobald, Chief Technology Officer<br>
LiquidStreaming
<a href="http://www.liquidstreaming.com/"
eudora="autourl">http://www.liquidstreaming.com</a><br>
[EMAIL PROTECTED]<br>
Phone 1.212.545.1232 Fax 1.212.679.8032<br>
<br>
----------------------------------------------------------------------------
<br>
--<br>
Archives:
<a href="http://www.mail-archive.com/cf-talk@houseoffusion.com/"
eudora="autourl">http://www.mail-archive.com/cf-talk@houseoffusion.com/</a><
br>
To Unsubscribe visit<br>
<a
href="http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;body=lists/cf
_talk"
eudora="autourl">http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;bo
dy=lists/cf_talk</a>
or<br>
send a message to [EMAIL PROTECTED] with 'unsubscribe'
in<br>
the body.<br>
<br>
----------------------------------------------------------------------------
--<br>
Archives: <a href="http://www.mail-archive.com/cf-talk@houseoffusion.com/"
eudora="autourl">http://www.mail-archive.com/cf-talk@houseoffusion.com/</a><
br>
To Unsubscribe visit <a
href="http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;body=lists/cf
_talk"
eudora="autourl">http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;bo
dy=lists/cf_talk</a> or send a message to [EMAIL PROTECTED]
with 'unsubscribe' in the body. </blockquote><br>
<br>
---------------------------------------------------------------------------<
br>
Peter Theobald, Chief Technology Officer<br>
LiquidStreaming <a href="http://www.liquidstreaming.com/"
eudora="autourl">http://www.liquidstreaming.com</a><br>
[EMAIL PROTECTED]<br>
Phone 1.212.545.1232 Fax 1.212.679.8032<br>
<br>
----------------------------------------------------------------------------
--<br>
Archives: <a href="http://www.mail-archive.com/cf-talk@houseoffusion.com/"
eudora="autourl">http://www.mail-archive.com/cf-talk@houseoffusion.com/</a><
br>
To Unsubscribe visit <a
href="http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;body=lists/cf
_talk"
eudora="autourl">http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;bo
dy=lists/cf_talk</a> or send a message to [EMAIL PROTECTED]
with 'unsubscribe' in the body. </font></blockquote><br>

<br>
-<font
size=3>---------------------------------------------------------------------
-----<br>
Peter Theobald, Chief Technology Officer<br>
LiquidStreaming <a href="http://www.liquidstreaming.com/"
eudora="autourl">http://www.liquidstreaming.com</a><br>
[EMAIL PROTECTED]<br>
Phone 1.212.545.1232 Fax 1.212.679.8032<br>
</font></html>

----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to