Virtual Mapping in ColdFusion 8

I was setting up the ColdFusion 8 server on my new Mac Pro today and am using the development server now in lieu of IIS which I always used on my Windows dev boxes previously. When setting up a virtual directory, I'd always just set it up through IIS. Setting up virtual directories in ColdFusion was a bit of a change for me, and after an hour of head scratching when my CF mapping didn't work when trying to call CFM files through browser, I figured out the following to setup a virtual directory for built-in ColdFusion development server:

1) Open up the jrun-web.xml file located in ColdFusion8/wwwroot/WEB-INF directory.
2) Add a virtual directory mapping as follows:

  <virtual-mapping>
<resource-path>/cf/*</resource-path>
<system-path>/Users/meutznerb/Documents/dev_flex3/CFMiddleTier/</system-path>
</virtual-mapping>

3) Save the file, and restart the CF server instance.

The mapping above will now allow me to call files from

http://localhost:8500/cf/
and reference the CFMiddleTier directory in my Documents/dev_flex3 directory.

The trick was getting the directory path correct... starting from /Documents/... would not work, and required the full path with /Users/meutznerb/Documents/... to be defined.

That's my mac newbie tip for the day :-)

Comments
Nursing is a profession focused on assisting individuals, families, and communities in attaining, maintaining, and recovering optimal health and functioning. Modern definitions of nursing define it as a science and an art that focuses on promoting quality of life as defined by persons and families, throughout their life experiences from birth to care at the end of life.
Site provides lengthy listing of New Jersey nursing statutes and regulations.

http://kartograf.5x.to/nursing6188.html
http://kartograf.5x.to/nursing2688.html
http://kartograf.5x.to/nursing705.html
http://kartograf.5x.to/nursing6474.html
http://kartograf.5x.to/nursing9307.html
http://kartograf.5x.to/nursing2486.html


HRSA nursing programs address the nation's registered nurse shortage by supporting nurse education.
Learn about our programs. Select a program to learn about career opportunities and how to get started! Download information/program application handbooks.

http://kartograf.43i.net/nursing8566.html
http://kartograf.43i.net/nursing4005.html
http://kartograf.43i.net/nursing2749.html
http://kartograf.43i.net/nursing9345.html
http://kartograf.43i.net/nursing3931.html
http://kartograf.43i.net/nursing5448.html
# Posted By Kartograf | 9/25/08 2:39 AM
I find the website laptop batteries,laptop AC adapters. All our products are brand new, with the excellent service from our laptop battery http://www.batterylaptoppower.com of customer service team.
the most convenient and cheap replacement battery online shop in uk. We specialize in http://www.batteryfast.com laptop batteries,laptop AC adapters. All our products are brand new, with the excellent service from our customer service team.
the most convenient and cheap replacement http://www.akkuliste.com battery online shop in uk. We specialize in laptop batteries http://www.batteryfast.co.uk ,laptop AC adapters. All of batteries are brand new, with the excellent service from our customer service team, you can feel free to purchase on laptop battery!
Here is cheap laptop ac adapter http://www.adapterlist.com online shop in uk. We specialize in http://www.batteryfast.com.au" target="_blank">http://www.batteryfast.com.au laptop AC adapters. All our products are brand new, with the excellent service from our customer service team.
# Posted By acer battery | 10/4/08 12:30 AM
BlogCFC was created by Raymond Camden. This blog is running version 5.005.