ColdFusion TechNote
ColdFusion MX (on multihomed servers) displays wrong page
If you have Macromedia ColdFusion MX or MX 6.1 installed 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.
WorkAround
To modify the performance tuning setting for all multihomed servers, use the following steps:
ColdFusion MX 6.1
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.
________________________________
From: Bruce A. Bergman [mailto:[EMAIL PROTECTED]
Sent: Thu 6/10/2004 5:16 PM
To: CF-Server
Subject: Re: $50 to anyone who can fix this problem...
Ding! Ding! Ding! Ding!
We have a winner! :-)
Thanks Sandy.
I had previously thought this was not a problem, since I DID test two simple
(non-FB) index.cfm files with the same poor results. However, I promised
myself when I posted this question that I'd try every idea, no matter how
silly I thought it was or whether I had done it before. So, I resurrected
my index.cfm file, changed text in both files and...it worked. Wait a
second! That threw me for a loop! :-) I expected it to fail like last time,
but this time everything worked. I retraced my steps and found that I had
gotten lost in all my testing of this thing. The original tests I created
months ago were BEFORE I turned off the caching flag (per MM's tech note).
Later testing with some discussion boards and FB apps continued to fail, but
they WOULD have worked had I just changed the app name for each
CFAPPLICATION tag. What probably got me off track was that one of the apps
I was testing with used an encrypted Application.cfm, so I wasn't able to
check the use of the CFAPPLICATION tag for duplicate names/scopes. When I
just now tried it with an open source app, and with my own FB apps -- using
a different app name for each -- everything worked as expected. Sigh. It's
the little things that kill you, and sometimes you just need someone looking
over your shoulder to make you think clearer. Thank you, Sandy.
So, send me an E-mail and let me know where to send your reward check! :-)
thanks,
bruce
----- Original Message -----
From: "Sandy Clark" <[EMAIL PROTECTED]>
To: "CF-Server" <[EMAIL PROTECTED]>
Sent: Thursday, June 10, 2004 9:26 AM
Subject: RE: $50 to anyone who can fix this problem...
> I noticed that you are running 2 FB3 apps. Have you tried it with simpler
> cfm scripts? IE 2 simple index.cfm;s each one showing something
different.
> It might be that you have something going on in the FB3 files. Possibly
> <cfapplication> has the same name for both?
>
> Sandy Clark
>
> _____
>
> From: Bruce Bergman [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 08, 2004 5:20 PM
> To: CF-Server
> Subject: $50 to anyone who can fix this problem...
>
>
> I'm incredibly frustrated by this problem and have tried various fixes,
but
> still with no resolution. So, I'll send a $50 cashier's check to the
first
> brainchild person who can help me fix this problem or provide the key
piece
> of information to solve this.
________________________________
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
