Coldfusion deployment under Apache Tomcat with Virtual Hosts
- by smalltiger85
Hello, I'm looking for the proper way to share the Coldfusion engine for all my Virtual Hosts. This is how I have the virtual hosts configured on server.xml in the Tomcat conf:
<Host name="localhost" appBase="webapps"
unpackWARs="false" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="cfusion/" reloadable="true" privileged="true" antiResourceLocking="false" anitJARLocking="false" allowLinking="true"/>
</Host>
<Host name="mysite1" appBase="webapps"
xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="/mnt/webroot/mysite1" />
</Host>
This is not valid for me because I'm instantiating one Coldfusion process for every virtual host, and it requires me to copy the WEB-INF folder in every site.
My question is, is there any way to share the same Coldfusion instance for every virtual host, mantaining the sites webroot outside of the cfusion folder?
I'm using Apache Tomcat 6 and Coldfusion Enterprise edition 8. Many thanks.