> We recently ran into a problem with ColdFusion loading the > wrong CFM pages for different virtual servers hosted from the > same machine. > > The virtual servers are running on the same iPlanet 6.0 SP4 > server. All are using ColdFusion MX Enterprise (version > 6,0,0,52311) on UNIX (Solaris 8). We developed a web > application which will be hosted from multiple virtual > servers on the same box. All CFM page filenames are the same > within the virtual severs and the code is identical (except a > few changes in the Application.cfm for each). Site #1 is > located in: "/local/web/site1/" and site #2 is located in: > "/local/web/site2/". > > The "index.cfm" page for site #1 appears fine in the browser > however when "index.cfm" for site #2 is loaded, the CF > debugging information shows that all the CF pages (and those > included from within index.cfm) were loaded from site #1's > web root directory (instead of site #2's directory). If I > restart ColdFusion and bring up "index.cfm" for site #2, it > loads fine. Then, "index.cfm" on site #1 displays the CF > pages for site #2 instead. > > I think the problem is with CF's page caching but haven't > been able to remedy it. Any ideas you can provide would be > greatly appreciated.
You probably need to set the cacheRealPath configuration attribute value to "false" - this is documented in the CFMX Release Notes, among other places. Edit \CFusionMX\runtime\servers\default\SERVER-INF\jrun.xml. Within this file, change the value "true" to "false" within this line: <!-- set this to false for multi-hosted sites --> <attribute name="cacheRealPath">true</attribute> This is necessary whenever you run CFMX on multiple virtual web servers. Unless this setting is changed, CFMX doesn't differentiate between files with the same name in different virtual servers. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

