ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  ColdFusion MX on Mac OS X, Part 3
Subject:   Mapping urls to other directories
Date:   2002-10-30 15:18:43
From:   anonymous2
i emailed dick about this, and he asked me to post this up.


if you want to map an url, eg http://localhost:8500/web to a directory on your mac, eg /websites then you can do so by editing the jrun-web.xml file (with a text editor) in the WEB-INF directory (/opt/coldfusionmx/wwwroot/WEB-INF)


eg


<virtual-mapping>
<resource-path>/web</resource-path>
<system-path>/websites</system-path>
</virtual-mapping>


with the text between resource path being the path at the URL, and the system-path being the path on your system!


just posting this as it might be of use to someone!!


Ryan