Coldfusion deployment under Apache Tomcat with Virtual Hosts
Posted
by smalltiger85
on Server Fault
See other posts from Server Fault
or by smalltiger85
Published on 2010-03-26T12:31:30Z
Indexed on
2010/03/26
12:33 UTC
Read the original article
Hit count: 515
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.
© Server Fault or respective owner