Switching the port for the built-in ColdFusion web server

May 2nd, 2008

ColdFusion LogoStraight from the ColdFusion Documentation

You can change the port on which the built-in web server runs.

To change the port for the built-in web server:

1. Back up the jrun.xml file.
This file is in the cf_root\runtime\servers\default\SERVER-INF directory in Windows, and in the cf_root/runtime/servers/default/SERVER-INF directory on UNIX.
2. Open the original jrun.xml file for editing.
3. Change the port number specified in the WebService port attribute (near the bottom of the file):
<service class=”jrun.servlet.http.WebService” name=”WebService”>
<attribute name=”port”>8500</attribute>
<attribute name=”interface”>*</attribute>
<attribute name=”deactivated”>false</attribute>

</service>
Note: Make sure that the deactivated attribute is set to false.
4. Save the file.
5. Restart ColdFusion.

Reference

ColdFusion LiveDocs

Leave a Reply

Spam protection by WP Captcha-Free