You need a CF mapping whenever you want to use a non-relative path that 
starts with a slash "/".  You will usually start running into mapping 
issues as soon as you put a SECOND web site on your server, and try to do a 
<CFINCLUDE template="/act_action.cfm">, and you realize the "/" is mapped 
to the root of your FIRST web site.

Mappings are also handy for moving included or module files OFF of your 
actual web site, making them more secure.  The mapping can point to 
anywhere on your network.

At 10:50 AM 4/24/01, Ryan Wood wrote:
>When specifically do you NEED a CF mapping? (please keep reading) I know
>they are for cfincludes and cflocation calls, but I've see the
>inconsistently work without mappings. I'm trying to find when a mapping is
>absolutely required.
>
>For instance <cfinclude template="/apps/index.cfm"> will work without a
>mapping as long as there is a APPS directory under the webserver root.
>However other times, similar calls throw an error that absolute references
>cannot be usedw/o a CF mapping. I cannot seem to find the common
>denominator.
>
>Could it be that mappings are required for any includes/location outside of
>the webroot, but not necessarily within it?
>
>I would appreciate any clarity you have to offer.
>
>Ryan
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to