System information

85
CONFIGURING AND ADMINISTERING COLDFUSION 9
Using Multiple Server Instances
Last updated 2/21/2012
For example, with a context root of cf, users access CFM pages by specifying http://hostname/cf/pagename.cfm. For
more information on using a context root, see Installing ColdFusion.
Note: Although cf is the context root, it does not relate to your web application directory structure.
Use multiple server instances for application isolation
1 Create a separate server instance by using the instructions in Defining additional server instances” on page 83. 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 67, 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 85.
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 84.
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 MX Applications option
(GUI) or use the -
coldfusion option (command line). For more information on running the Web Server
Configuration Tool, see
Using an external web server” on page 60.
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 84.