I was wondering if it's possible to run a Tomcat server within Apache whilst also running PHP servers under other virtual host instances? And if so, how is this done?
Basically, I'm trying to run an Apache server that redirects to different applications based on the DNS address used. For example:
www.javaapp.com -> Sends the Java application to the clients browser
www.phpapp.com -> Sends a PHP application to the clients browser
And I was also wondering if there's a way of adding a third application in RoR as well, and whether Apache can serve Rails or not?
I am currently using Tomcat for my JSP application, I know this can be integrated with Apache, but I wasn't sure if it could be done alongside applications written in other languages. As I know that Apache is able to redirect to virtual hosts based on the DNS address entered, which I thought was pretty cool and would really help me to host multiple applications on my box that I'm writing.