Skip to main content
Known Participant
March 23, 2010
Question

How to setup multiple CF instances? (Jrun Multisever)

  • March 23, 2010
  • 1 reply
  • 5027 views

I have ColdFusion multi-server instance setup on my local development workstation with the initial ColdFusion instance being CF9 and a second instance for CF8.  The server was setup to connect to IIS with the default IIS web site connected to the CF9 instance.  I have a collection of other web sites under IIS which are each connected to either the CF9 or CF8 instance.

So, I am trying to setup these two instances in ColdFusion Builder.  Both servers are running on the same IP address / host and even though I provide different application server names, the two servers in ColdFusion always end up pointing at the CF9 instance.

What am I doing wrong here?

Thanks

-- Jeff

This topic has been closed for replies.

1 reply

Participating Frequently
March 24, 2010

Hi Jeff

As you mentioned you have multi server setup with CF9 and CF8. You need to provide the ContextRoot for CF9 and CF8 server while configuring server in ColdFusion Builder.  Also as you mentioned you have configured CF8/CF9 on different website on IIS, You need to provide the Webport of site where you running CF8/9 during server configuration in CFB.

If still not able to fix it. Give us some more details with example URL for CF9/CF8 admin, sites configured under CF9/CF8, details of site will help us providing correct configuration.

Thanks

Kiran Sakhare

Admentus1Author
Known Participant
March 24, 2010

Okay, here goes.  I installed ColdFusion 9 as a multi-server JRun configuration leaving me with two instances running - cfusion and admin.  I then ran the ColdFusion 8 installer creating a new EAR file which was deployed to JRun giving me a third instance - cfusion8.

When the initial ColdFusion 9 installation was run, it connected to IIS using only the default localhost web site.  So, if I browse to http://localhost/CFIDE/administrator/index.cfm I get the ColdFusion administrator for the cfusion (CF9) instance.

I have since setup numerous project web sites (http://project1, http://project2, etc.) in IIS and have used the JRun web server configuration tool to connect either the CF8 (cfusion8) or CF9 (cfusion) instances to each of these project web sites in IIS.  So, while the default localhost web site was setup for CF9, I don't really have a 'default' web site for CF8.  Each of the individual project sites have a CFIDE virtrual directory setup to point to the C:\JRun4\servers\cfusion8\cfusion.ear\cfusion.war\CFIDE to be able to access the CF administrator.

All of these IIS web sites are running on the same IP address though with different host headers.  When I create the new server instance in CF Builder, it asks for the host but appears to only recognize the IP address, not a host header and thus all of my locale CF server instances end up pointing to the default CF 'cfusion' instance.  This is what I am trying to figure out a way around.

Thanks

-- Jeff

Participating Frequently
March 24, 2010

Hi Jeff

          Thanks for the detailed setup description. For website setups,  CFB provides Virtual Host setup in Server. As you mentioned you have multiple website configured for CF9/8 , I will try to provide solution by example

server                   CF8                     CF9

Context Root        cfusion8              cfusion

Site Info     

Host  Name       www.cf8.com     www.cf9.com

Port                         81                         82

Document Root    c:\project1          c:\project2

                   

1. Add CF9 Server with below configuration

Host Name - localhost   

port            -  80

Application Name -

ServerHome - c:\jrun4

Document root - c:\inetpub\wwwroot

VirtualHost setting

    Virtual Host Address--- www.cf9.com

    port            --- 82

  Document root -- c:\project1

2.  Add CF8 Server with below configuration

Host Name - localhost   

port            -  80

Context root - cfusion8

Application Name -

ServerHome - c:\jrun4

Document root - c:\inetpub\wwwroot

VirtualHost setting

    VirtualHost Address -- www.cf8.com

    port  ------------------------ 82

  Document Root ------- c:\project2

Read more about Virtual Host setup in CFB Documentation.  Hope this will help u

Thanks

Kiran Sakhare