Accessibility

TechNote (Archived)

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
  1. Open the ColdFusion Administrator.
  2. Select the link to the Caching page.
  3. Ensure that Cache web server paths is unselected.
ColdFusion MX
  1. 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
  2. Find the entry named "cacheRealPath" within the file. The default for this setting is "true," as shown here:

    <attribute name="cacheRealPath">true</attribute>
  3. Change the entry to "false," as shown here:

    <attribute name="cacheRealPath">false</attribute>
  4. Save the file. Stop and restart ColdFusion MX.

AlertThis 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!

Get Adobe Flash Player

Creative Commons License

Search Support


Document Details

ID:tn_18258
Browser:Chrome
Internet Explorer
Netscape
Opera
Safari
Firefox

Products Affected:

coldfusion