Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-25-2012, 01:00 PM
|
#1
|
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905
Rep:
|
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?
|
|
|
04-25-2012, 02:08 PM
|
#2
|
Senior Member
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604
|
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.
|
|
1 members found this post helpful.
|
04-26-2012, 09:09 AM
|
#3
|
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905
Original Poster
Rep:
|
Thank you. I will look into that. Sounds complex but I'm sure it's documented somewhere.
|
|
|
04-26-2012, 11:26 AM
|
#4
|
Senior Member
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604
|
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
|
|
1 members found this post helpful.
|
04-26-2012, 01:09 PM
|
#5
|
Member
Registered: Jan 2011
Posts: 47
Rep:
|
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
|
|
1 members found this post helpful.
|
04-26-2012, 03:16 PM
|
#6
|
Senior Member
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604
|
mod_jk is deprecated in newer versions of Apache and is replaced with mod_proxy and mod_proxy_ajp. Config is very similar.
|
|
|
All times are GMT -5. The time now is 12:49 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|