Changing the web root for ColdFusion's built in webserver

I never remember this file path/syntax when setting up a new machine (instructions courtesy of Adobe support)

1. Make a backup copy of C:\ColdFusion8\wwwroot\WEB-INF\jrun-web.xml, and then open the original version of the jrun-web.xml file.
2. Edit the system-path attribute to change to the new web root directory:

<virtual-mapping>
<resource-path>/*</resource-path>
<system-path>c:/inetpub/wwwroot/</system-path>
</virtual-mapping>
Note: Remember to use forward slash characters in the pathname.

3. Save the file.
4. You can now move the CFIDE and cfdocs directory to the new web document root. These directories contain the files for the ColdFusion Administrator, the ColdFusion documentation, and the ColdFusion example code. Caution: Do not move the WEB-INF directory. It must stay under the cf_root\wwwroot directory.
5. Restart the ColdFusion server.

Comments
Kaeden60's Gravatar You cannot even imagine how helpful your article has been to me! I have read the book, suggested by http://www.pdfqueen.com a ebooks search engine, and felt completely confused. But thanks to your article I have finally understood everything. Thank you!!!
# Posted By Kaeden60 | 11/9/09 10:57 AM
BlogCFC was created by Raymond Camden. This blog is running version 5.9.2.002. Contact Blog Owner