>I am trying to set up some local mappings (CF9) and it doiesn't seem to >recognize it. I have this as part of several variables that are set before >the 1st function in my application.cfc... > ><cfset this.mappings[ "/cup" ] = "#application.cuproot#/cup"> > > > >For instance...when I try to access an image in a directory (the path from >the root is /cup/images/image.png), I call <img src="/cup/images/image.png" >/>, instead of mapping it like i would expect it to, it just appends the >server url and i get something like
ColdFusion mappings are used by the ColdFusion server to locate files in the file system, for like <cfinclude> and CFC pathing. They've got nothing to do with URLs. You want to be setting up a web server virtual directory, so when the browser requests a file on a given URL, the web server knows where to find them. Reading this - to understand how CF / web server / client interact - might help: http://cfmlblog.adamcameron.me/2012/10/the-coldfusion-requestresponse-process.html -- Adam ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:357149 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm