There is a switch for this in the jrun.xml file (found in the Server-INF directory of your cfmx runtime). It's called "cachrealpath" - make sure it is set to "false".
<service class="jrun.servlet.jrpp.JRunProxyService" name="ProxyService"> <attribute name="port">51010</attribute> <attribute name="deactivated">false</attribute> <attribute name="activeHandlerThreads">14</attribute> <attribute name="minHandlerThreads">10</attribute> <attribute name="threadWaitTimeout">300</attribute> - <!-- set this to false for multi-hosted sites --> <attribute name="cacheRealPath">false</attribute> <attribute name="maxHandlerThreads">1000</attribute> <attribute name="mapCheck">0</attribute> <attribute name="interface">127.0.0.1|192.168.0.81|192.168.0.82|10.0.0.7</attribute> </service> -Mark -----Original Message----- From: Peter Fellwock [mailto:[EMAIL PROTECTED] Sent: Thursday, December 16, 2004 1:00 PM To: CF-Linux Subject: VirtualHosts cannot keep the DocumentRoots in check when refreshing page We have had 4 developers try to solve this and have spent countless hours trying to figure this out, please help! Here is the issue, I have two VirtualHosts, 1 IP, serving two sites dev.mySite.com & tandev.mySite.com. Both have a index.cfm, but their sub-directories are different. Oftenly when I refresh on either site, I get sent to the others page. WT? The page does not load the css because in both pages the css are found in different directories. The non-shared images obviously are not found. It takes a couple of refreshes before I get it in this state, but there is no pattern, so it's not the way the virtualhosts are loaded. I am soo lost. Any input would help. Has anyone seen this issue? has anyone experienced something similar with virtualhosts getting wacky? Is this a cfmx vs apache vitualhosts problem? Works fine without the virtualhosts! This is in our prod environment as we speak. Below is a stripped, yet still failing httpd.conf: ----------------------------------------------- ServerRoot "/opt/apache" PidFile logs/httpd.pid Timeout 300 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 15 <IfModule prefork.c> StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxClients 150 MaxRequestsPerChild 0 </IfModule> <IfModule worker.c> StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0 </IfModule> <IfModule perchild.c> NumServers 5 StartThreads 5 MinSpareThreads 5 MaxSpareThreads 10 MaxThreadsPerChild 20 MaxRequestsPerChild 0 </IfModule> User content Group content ServerAdmin [EMAIL PROTECTED] Listen 80 ServerName dev.mySite.com:80 UseCanonicalName Off NameVirtualHost 172.16.0.101 ########################################################################## # dev.mySite.com ########################################################################## <VirtualHost 172.16.0.101> ServerName dev.mySite.com DocumentRoot /opt/www/mySite.com <Directory /opt/www/mySite.com> Options Indexes FollowSymLinks AllowOverride FileInfo Order Allow,Deny Allow from All </Directory> </VirtualHost> ########################################################################## # mySitenetwork.com ########################################################################## <VirtualHost 172.16.0.101> ServerName tandev.mySite.com DocumentRoot /opt/www/themySitenetwork.com <Directory /opt/www/themySitenetwork.com> Options Indexes FollowSymLinks AllowOverride None Order Allow,Deny Allow from All </Directory> </VirtualHost> DirectoryIndex index.cfm index.html TypesConfig conf/mime.types DefaultType text/plain HostnameLookups Off EnableMMAP off EnableSendfile off ErrorLog logs/error_log LogLevel warn LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %b" common LogFormat "%{Referer}i -> %U" referer LogFormat "%{User-agent}i" agent LogFormat "%h %v %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{Cookie}i\"" mySite CustomLog logs/access_log mySite ServerTokens Prod ServerSignature Off Alias /images /opt/wwwdynamic/mySite.com.images <Directory /opt/wwwdynamic/mySite.com.images> AllowOverride None Order allow,deny Allow from all CheckSpelling on </Directory> AddEncoding x-compress Z AddEncoding x-gzip gz tgz AddDefaultCharset ISO-8859-1 AddType image/x-icon .ico BrowserMatch "Mozilla/2" nokeepalive BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0 BrowserMatch "RealPlayer 4\.0" force-response-1.0 BrowserMatch "Java/1\.0" force-response-1.0 BrowserMatch "JDK/1\.0" force-response-1.0 BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully BrowserMatch "^WebDrive" redirect-carefully BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully BrowserMatch "^gnome-vfs" redirect-carefully # JRun Settings LoadModule jrun_module /opt/coldfusionmx/runtime/lib/wsconfig/1/mod_jrun20.so <IfModule mod_jrun20.c> JRunConfig Verbose false JRunConfig Apialloc false JRunConfig Ssl false JRunConfig Ignoresuffixmap false JRunConfig Serverstore /opt/coldfusionmx/runtime/lib/wsconfig/1/jrunserver.store JRunConfig Bootstrap 127.0.0.1:51010 #JRunConfig Errorurl <optionally redirect to this URL on errors> AddHandler jrun-handler .jsp .jws </IfModule> --------------------- thank you, Peter ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Special thanks to the CF Community Suite Silver Sponsor - RUWebby http://www.ruwebby.com Message: http://www.houseoffusion.com/lists.cfm/link=i:14:3798 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/14 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:14 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.14 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
