
121
CONFIGURING AND ADMINISTERING COLDFUSION 10
Using Multiple Server Instances
L
ast
u
p
dated
7/9/2
01
2
Use multiple server instances for application isolation
1
Create a separate server instance by using the instructions in “
Defining additional server instances
” on page 119. If
you are using the built-in web server, proceed to step 6 in this procedure.
2
Using your web-server-specific method, create a virtual website (or separate website) for the application.
For more information, see “
Multihoming
” on page 102, or consult your web server documentation.
3
Test each virtual website to ensure that HTML pages are served correctly.
4
Store the ColdFusion files of your application, in the ColdFusion web application root (recommended for
application portability) or the web root of the virtual website.
5
Follow the instructions for your web server to configure the connection between your virtual website and the server
instance. For more information, see “
Web server configuration for application isolation
” on page 121.
6
Test your application.
7
Repeat these steps for each server instance.
Web server configuration for application isolation
When you use multiple server instances for application isolation, the steps you perform to configure communication
between the website and the server instance differ for each web server.
To enhance performance when using an external web server with multiple server instances, place all static content
(HTML files and images, for example) under the web server root directory or one of its subdirectories. Minimize the
amount of static content served from ColdFusion web application root directory.
Configuring application isolation in IIS
When you use multiple virtual websites with multiple server instances under IIS, you define separate filters and
mappings for each virtual website and server instance combination.
It is assumed that you already created server instances and virtual websites, as described in “
Enabling application
isolation
” on page 120.
Configure multiple server instances for application isolation when using IIS
Run the Web Server Configuration Tool multiple times, once for each virtual website, and specify a different site and
server instance each time. Ensure that you select the Configure Web Server for ColdFusion Applications option (GUI).
For more information on running the Web Server Configuration Tool, see “
Using an external web server
” on page 96.
Configuring application isolation in Apache
When you use multiple virtual hosts with multiple server instances under Apache, you edit the httpd.conf file
manually.
It is assumed that you already created server instances and virtual websites, as described in “
Enabling application
isolation
” on page 120.
Configure multiple server instances for application isolation when using Apache
Assume that you have two instances:
cfusion
and
server1
.
1
Configure Apache webserver for cfusion instance using the wsconfig tool.
This step creates the connector-related files in the
cf_root\config\wsconfig\1
folder. It also creates the
mod_jk.conf
in the
<Apacheroot>\conf
folder. The
mod_jk.conf
file is included in the
httpd.conf
.