LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-25-2012, 01:00 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Question 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?
 
Old 04-25-2012, 02:08 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
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.
Old 04-26-2012, 09:09 AM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Thank you. I will look into that. Sounds complex but I'm sure it's documented somewhere.
 
Old 04-26-2012, 11:26 AM   #4
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
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.
Old 04-26-2012, 01:09 PM   #5
raj47
Member
 
Registered: Jan 2011
Posts: 47

Rep: Reputation: 2
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.
Old 04-26-2012, 03:16 PM   #6
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
mod_jk is deprecated in newer versions of Apache and is replaced with mod_proxy and mod_proxy_ajp. Config is very similar.
 
Old 04-27-2012, 05:12 AM   #7
zaza1851983
LQ Newbie
 
Registered: Apr 2012
Posts: 11

Rep: Reputation: Disabled
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Connectivity issues between Tomcat 6.0.35 and Apache 2.2 Web Server troubledhoster Linux - Software 4 01-15-2012 08:56 AM
Apache Web Server + Tomcat 6 issues tpe Linux - Server 12 01-18-2010 03:11 AM
Please help with Apache Web Server / Apache Tomcat / PHP / Java / PHP-Java Bridge jpmad4it Linux - Server 2 01-05-2009 06:07 AM
New Web Applications to Apache-Tomcat Web sarathmohan Linux - Software 0 10-02-2003 02:59 AM
Apache Tomcat web Server hardware config homyarb Linux - Software 2 04-16-2003 12:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration