CF9 CF8 Railo Multiserver Install Under JRUN - page 3

Author: Steven Neiland
Published:

Warning: This blog entry was written two or more years ago. Therefore, it may contain broken links, out-dated or misleading content, or information that is just plain wrong. Please read on with caution.

A note on Openbluedragon

While technically this technique should work for OpenBD, on my system I got a 403 error when trying to access any cfm file. (jsp files worked though). I have not found a solution to date for this and since I have not "yet" worked on an OpenDB server I have not put too much time into trying to figure this out.

If you want to use OpenBD I would actually switch away from JRUN altogether to tomcat or jetty. Several people have noted that tomcat is faster and leaner than JRUN. In addition Coldfusion X will use tomcat so maybe now is a good time to get ready for the switch.

Step 7: Create Domains For Each Project and CF Server

Now that we have our ColdFusion/Railo servers running we need to connect our webserver to direct traffic for different domains to each one.

The way I handle multiserver testing is to use a single code directory for a project but to have a separate sub domains for each cf server I want to run the code on. So for example if I am developing a project and I want to test it on all 3 instances I setup 3 domains for it.

To do this open your "hosts" file with notepad and paste in the following lines. For me it was located in "C:\Windows\System32\drivers\etc". Note that it may be hidden as it is a system file with no extension so you may have to enable visibility on hidden files and folder.

127.0.0.1  cf9.myproject.localhost
127.0.0.1 cf8.myproject.localhost
127.0.0.1 railo.myproject.localhost

With your changes saved, your web browser will always go directly to localhost for these domains.

Step 8: Create IIS Sites/Apache VHosts for each Project/Domain

With the domains created we now need to create websites on the server for the project and connect them to the relevant CFML instance.

I am assuming that you know how to create a site in IIS or a vhost in Apache so I'll skip the details. Just know that you want to create one site/vhost for each cfml/domain instance you want matching the domains you created in your hosts file.

1 2 3 4

Reader Comments

  • Please keep comments on-topic.
  • Please do not post unrelated questions or large chunks of code.
  • Please do not engage in flaming/abusive behaviour.
  • Comments that contain advertisments or appear to be created for the purpose of link building, will not be published.

Archives Blog Listing