-   Linux - Server (
-   -   Tomcat Apache on Apache Web Server? (

carlosinfl 04-25-2012 01:00 PM

Tomcat Apache on Apache Web Server?
I have a production web server at my office running Apache 2.x. This server is extremely basic in terms of configuration. I run port 80 and 443 for SSL. I've been tasked to get a program called Agilefant installed on the production web server and it seems to only support / use Apache Tomcat which I've never used or have any experience with. My question is can I install / configure Apache Tomcat on a Linux dedicated web server running Apache 2.x or would I need to run Tomcat on a different dedicated server apart from Apache 2.x?

Kustom42 04-25-2012 02:08 PM

You can run Apache and Tomcat side by side. Look at the mod_proxy and mod_proxy_ajp Apache modules to redirect requests for that app over to tomcat. So Apache takes the request, interprets it and hands it off to tomcat to parse the code and then it hands it back over to Apache to deliver the code to the clients browser.

carlosinfl 04-26-2012 09:09 AM

Thank you. I will look into that. Sounds complex but I'm sure it's documented somewhere.

Kustom42 04-26-2012 11:26 AM

Its not too tough, use the ProxyPass directive and that's about it. The hardest part is installing tomcat and the modules. Here is a good little tidbit on setting it up:

raj47 04-26-2012 01:09 PM

Hey carlosinfl,

Wow wow wow !!

You can run apache in front end and tomcat be a default back end server. Install httpd and install tomcat from source then use mod_jk connector

I belive this is your configuration

pretty easy ahh!!


Kustom42 04-26-2012 03:16 PM

mod_jk is deprecated in newer versions of Apache and is replaced with mod_proxy and mod_proxy_ajp. Config is very similar.

zaza1851983 04-27-2012 05:12 AM

you can use either proxy module, or connector module, which is written specifically for such tasks
here's a how to

All times are GMT -5. The time now is 01:30 PM.