Mantis - Resin
Viewing Issue Advanced Details
1645 major always 03-13-07 12:40 04-05-07 14:06
kleung11  
ferg  
normal  
closed 3.0.21  
fixed  
none    
none 3.1.1  
0001645: Multiple Virtual Hosts with no default webapps
Our web application is a proprietary CMS. It checks the domain name and presents the browser with the content and template by the domain name. We have over 200 domain names but we do not define each one in Apache and Resin. We have setup apache with a generic virtual host and anything that begins with /NASApp (we used to use NAS) will use Resin to answer the request.

Resin has been setup with only the default virtual host which expands the NASApp.war file in the webapps directory. However, on occasion, it would not present the browser with certain random domain names, as if the webapp is not installed on that domain. Checking cacho-status, one can see the list of domains (usually 1, otherwise 2, rarely 3) that has a webapps of nothing. The listed domains will not work for this reason.

If refreshed, the list of domains may change and usually goes away, as it is intermittent but consistently a problem.

Resin is installed on both RHEL3 and RHEL4, running Java version "1.4.2_08"
Attached are the apache config, resin config, and the caucho status image showing the problem.

I had thought initially that this is a problem with the Pro version but we have tried both the Pro and Open Source versions.
 httpd.conf [^] (48,609 bytes) 03-13-07 12:40
 resin.conf [^] (8,487 bytes) 03-13-07 12:40
 CauchoStatus.JPG [^] (93,068 bytes) 03-13-07 12:41

Notes
(0001817)
ferg   
04-05-07 14:06   
The entry in the caucho-status for the virtual host indicates that mod_caucho does not yet know how that virtual host is configured, i.e. it hasn't been able to contact the ResinConfigServer.

3.1.1 has made a number of fixes to the mod_caucho/Resin caching and improved the information in the /caucho-status report.