Well, in this case I have:
1) a live production site
2) a staging/testing site
3) a development site

All as virtual server on one physical server. In Apache I can map virtual directories 
so each site has a different images directory for example. But in the Cold Fusion 
Administrator I cannot map different INCLUDE roots for each virtual site. I store my 
libraries of CF modules in a directory that I want to use absolute references to for 
convenience and security. But I cannot have developers working and testing on these 
libraries if I cannot map different directories for the live, staging, and development 
virtual servers. They all share ONE directory!
That means back to relative paths or setting up two more servers :-(


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


---------------------------------------------------------------------------
Peter Theobald, Chief Technology Officer
LiquidStreaming http://www.liquidstreaming.com
[EMAIL PROTECTED]
Phone 1.212.545.1232 Fax 1.212.679.8032

------------------------------------------------------------------------------
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