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?
|
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.
|
Thank you. I will look into that. Sounds complex but I'm sure it's documented somewhere.
|
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: http://www.zeitoun.net/articles/conf...h-tomcat/start
|
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!! thanks Raj |
mod_jk is deprecated in newer versions of Apache and is replaced with mod_proxy and mod_proxy_ajp. Config is very similar.
|
you can use either proxy module, or connector module, which is written specifically for such tasks
here's a how to http://tomcat.apache.org/connectors-...o/workers.html |
All times are GMT -5. The time now is 01:27 PM. |