ColdFusion MX (on multihomed servers) displays wrong page
Issue
If you have Macromedia ColdFusion MXinstalled on multihomed web servers (web servers with two or more virtual webroots), and if multiple files have the same name in each virtual webroot (for instance, there is an index.cfm in several of the virtual webroots), the first file loaded may display for all virtual webroots instead of the correct file for each virtual webroot.
This issue is caused by a performance tuning setting. While this setting enables single virtual websites to run slightly faster, it causes multihomed servers, in certain cases, to display the wrong page.
Solution
To modify the performance tuning setting for all multihomed servers, use the following steps:
ColdFusion MX 6.1 and MX 7
- Open the ColdFusion Administrator.
- Select the link to the Caching page.
- Ensure that Cache web server paths is unselected.
ColdFusion MX
- Open the file jrun.xml.
On Windows systems, the default location for the file is:
C:\cfusionmx\runtime\servers\default\SERVER-INF\jrun.xml
On Unix-based systems, the default location is:
/opt/coldfusionmx/runtime/servers/default/SERVER-INF/jrun.xml - Find the entry named "cacheRealPath" within the file. The default for this setting is "true," as shown here:
<attribute name="cacheRealPath">true</attribute> - Change the entry to "false," as shown here:
<attribute name="cacheRealPath">false</attribute> - Save the file. Stop and restart ColdFusion MX.
This content requires Flash
To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player.
Download the free Flash Player now!
