I need to run ColdFusion apps on my existing PHP server (Linux). I installed railo with tomcat on the server, but Railo is hogging all the traffic. I want it installed such that only requests to files within /webapps/ROOT/ go through the Railo server, and all others through the existing php server. The server is not my own, and my installation of Railo is breaking other users' sites.
Is there any way I can do this?
P.S.: I am not very proficient with Linux and the company that owns it has totally crap support, so talking to them is taking one step forward and two steps back.
You need to install
mod_jk
ormod_proxy
to forward requests from the Apache to Tomcat.Here's an example with
mod_jk
.webapps
folder and rename torailo.war
.mod_jk
Create/edit the
workers.properties
file as belows:Create a
mod_jk.conf
file:Add a virtual host for Tomcat:
It means that the request to http://your.domain.com/railo will be forward to Tomcat, at
railo
context and other requests are still served by Apache.Mod Proxy example (credit Jamie Krug for simplifying this):
httpd.conf
server.xml (Tomcat)
Make sure that these are defined above the definition of LOCALHOST