919 - 926 - 9847

Set up muliple instances for just one website - caveats

To expand upon this earlier post, when you map multiple instances within the same website (via virtual webs), items that use CFCHART will break. To make sure that the correct CFIDE is called when calling things like cfform, cfchart, etc. you need to make these modifications (thanks to Bruce Purcell)

  • In {cfmx-root}/lib/neo-graphing.xml
    Change /CFIDE/GraphData.cfm to /somesite/CFIDE/GraphData.cfm
  • In {cfmx-root}/wwwroot/WEB-INF/web.xml
    Change /CFIDE/GraphData.cfm to /somesite/CFIDE/GraphData.cfm

In addition, we were experiencing issues with session replication when users were moving between virtual webs within the same site. The fix for this is to place this code into a normal index.html template, and ensure that this template is called first when entering your site.


<html>
<head>
<script LANGUAGE="JavaScript">
<!--//
         document.cookie = "JSESSIONID=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/";
         document.cookie = 'CFID=; expires=Thu, 2 Aug 2001 20:47:11 UTC; path=/';
         document.cookie = 'CFTOKEN=; expires=Thu, 2 Aug 2001 20:47:11 UTC; path=/';
         location.replace('https//<somedomain/<somesite>/index.cfm');
//-->

</SCRIPT>

    <!-- <META http-equiv="refresh" content="0;URL=http://<somedomain>/<somesite>/index.cfm" /> -->
</head>
<body>
    <!-- <p>The eBusiness home page can be found at <a href="http://<somedomain>/<somesite>/index.cfm">http://<somedomain>/<somesite>/index.cfm</a></p> -->
</body>
</html>

Related Blog Entries

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
mark kruger's Gravatar Matt,
Great stuff. I'm going to add a cross post later tomorrow. I want to try this out on a new high traffic single site.

-Mark
# Posted By mark kruger | 2/22/07 10:25 AM
Matthew Williams's Gravatar Heck, I'm flattered!. We have this working using multiple clusters with up to three servers. We plan to add another server in the near future, with spiffy new IBM blades. The only time we ran into issues is for sites that store session information, but have an incorrect JSESSIONID. The above HTML code should fix this, however. Well, and for graphs. But both are addressed in the post. I'm glad this is of use to others.
# Posted By Matthew Williams | 2/22/07 11:02 AM