ColdFusion MX has its own web server that you can use to develop ColdFusion MX applications, without depending on an external web server, such as Internet Information Server (IIS), Apache, or iPlanet. Macromedia does not recommend using the ColdFusion MX web server in a production environment. However, it is more than suitable for development, allowing you to create virtual directories and set the default document (for example, default.cfm or index.cfm).
During the ColdFusion MX installation, you must choose a web server. If you select the Stand-alone server in Windows, or the Internal (Port Based) server on UNIX, then your web root directory is located in the cf_root\wwwroot or cf_root/wwwroot directory. By default, the web server runs on port 8500. This means that to display a page in your application, you must append :8500 to the host name or IP address in the URL; for example, http://localhost:8500/YourApp1/index.cfm. (If the page still does not display, make sure that the document is located in the ColdFusion MX web root directory; for example, c:\CFusionMX\wwwroot\MyApp.cfm.)
You can change the default port on which the ColdFusion MX web server runs.
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.
<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.
You can switch to the built-in ColdFusion MX web server without reinstalling, even if you did not select it during installation. To run the ColdFusion Administrator, copy the contents of your web root directory to the ColdFusion MX cf_root\wwwroot or cf_root/wwwroot directory, and use an appropriate URL reference (for example, http://localhost:8500/YourApp1/index.cfm).
To switch to another web server, follow the instructions for the appropriate web server on your platform in "Configuring web servers," in Chapter 2.