
Using the built-in web server
27
Using the built-in web server
ColdFusion MX 6.1 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 built-in 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 6.1 installation, you must choose a web server. If you select the built-
in server, then your web root directory is located in the
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 built-in web server’s web root directory; for example,
C:\CFusionMX\wwwroot\YourApp1\index.cfm.)
Switching the port for the built-in web server
You can change the default port on which the built-in web server runs.
To change the default 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 MX.
verity
Verity collections. (The Verity program files are in the lib directory.)
wwwroot
Default web root directory for the built-in web server. When running on other
web servers, this directory contains only the WEB-INF directory; do not
remove this directory.
Directory
Description
Содержание COLDFUSION MX 61 - CONFIGURING AND ADMINISTERING COLDFUSION...
Страница 1: ...Installing and Using ColdFusion MX...
Страница 6: ...6 Introduction...
Страница 30: ...30 Chapter 2 Installing the Server Configuration...
Страница 48: ...48 Chapter 3 Installing the J2EE Configuration...
Страница 70: ...70 Index...