Skip to main content

Can two IIS Websites with nearly Identical Code Basis be sent to the same ColdFusion Backend?

itemprop="text">

Running cold fusion standard, so i can
only have 1 instance of the coldfusion tomcat host per machine.




href="https://helpx.adobe.com/coldfusion/configuring-administering/web-server-management.html#IIS"
rel="nofollow
noreferrer">https://helpx.adobe.com/coldfusion/configuring-administering/web-server-management.html#IIS
says it's fine to have two websites send over to the same isntance, but i was wondering
if it's still fine if the two websites are almost exactly the same code base, same file
names, etc. We were looking at this option to run two slightly different sites of the
same server, aka only change a few files and let vhost routing make it so different
users get different experience.



I understand
double the load means double the resources for tomcat, but we you can assume it's
properly sized. I'm just wondering if there are technical/concurrent problems with doing
it this way. EG: would coldfusion compiler cache things incorrectly, or maybe it uses
distinct class loaders per IIS virtualdir, or maybe it's all checksum based on the hash
of the cfm file...


itemprop="text">
class="normal">Answer



As long
as each application has a unique name in application.cfc, it should work
fine.



In
application.cfc:



this.name =
“this-needs-to-be-unique”;



Comments