Mantis - Resin
Viewing Issue Advanced Details
2424 minor always 02-11-08 13:56 03-26-08 14:30
ferg  
ferg  
normal  
closed 3.1.5  
no change required  
none    
none  
0002424: host deploy enhancements
(rep by Stargazer)

t strikes me that its the reliance on the physical directory name in
the <host-deploy> construct which is causing the problem. It mixes the
found dir name on disk with the contents of its particuar host.xml.
Using my <resin:import> way everything is defined in the found xml
files, no matter where they exist in the subdir tree, because I put the
<resin:import> tag in the def for http://localhost [^] webapps in
resin.conf, i.e. "/". So what would be perfect would be the
<host-deploy> functionality but honouring everything in the located
file, as in this example (as a useful side effect is the files can have
any name too, which helps manage many hosts easier as I usually stick
the hostname in the xml filename):

conf/hostconf/pligg/www.foo.com.xml:

<host xmlns="http://caucho.com/ns/resin" [^]
xmlns:resin="http://caucho.com/ns/resin/core"> [^]
 <web-app id='www.foo.com' document-directory='/www/pligg/www.foo.com'>
</web-app>
</host>

Lets me use http://localhost:8080/www.foo.com [^] and

conf/hostconf/pligg/www.bar.com.xml:

<host xmlns="http://caucho.com/ns/resin" [^]
xmlns:resin="http://caucho.com/ns/resin/core"> [^]
 <web-app id='www.bar.com' document-directory='/www/pligg/www.bar.com'>
</web-app>
</host>

Does the same for http://localhost:8080/www.bar.com [^] etc


Notes
(0002915)
ferg   
03-26-08 14:30   
This functionality is available by using <resin:import> inside the <cluster>. Since the <host> can directly be defined in the <cluster>, the imported files can be named as desired.