Accessibility
 
Home > Products > ColdFusion > Support > Advanced Development
ColdFusion Icon Macromedia ColdFusion Support Center - Advanced Development
Changing the web root directory

By default, the web root of the built-in ColdFusion web server is cf_root\wwwroot. You can change the default web root by editing the file web_root\WEB-INF\jrun-web.xml.

To change the web root in Windows:

1 Make a backup copy of web_root\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:/cfusionmx/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.
To change the web root in UNIX:

1 Make a backup copy of web_root/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>/opt/docroot/</system-path> 
</virtual-mapping>
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 remain under the cf_root/wwwroot directory.
5 Restart the ColdFusion server.
To Table of Contents Back to Previous document Forward to next document