Standard ColdFusion Install and Multiple Virtual Websites

Sep 10, 2008

Over the last 4 weeks I've seen some odd issues where the wrong page will be served up by my VPS with HostMySite. I at first attributed it to IIS, then the some weird header molestation when Apache didn't fix it. Thankfully when I posted about this issue yesterday, joshua cyr was quick to post up an old TechNote from MX6/MX7.

In short the problem is with the cacheRealPath attribute in jrun.xml. Almost 100% of the time I install the multi-version instance of ColdFusion; however my VPS is the single instance default install. Why does this matter? The multi or j2ee installs of CF8 default this attribute to false, whereas the default install sets it to true. This results in InstanceA being able to mistakenly server up InstanceB's Index.cfm file causing lots of fun issues when you have multiple virtual web servers (IIS/Apache) and template caching turned on....

Comments

Write your comment



(it will not be displayed)



Subscribe to this comment thread