LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 02-03-2012, 02:25 PM   #1
Pricy
LQ Newbie
 
Registered: Sep 2010
Posts: 13

Rep: Reputation: 0
Unhappy Binding Apache and Tomcat to use port 443


Hi there,

How do I configure my server to allow both Apache and Tomcat to bind to port 443. I have two network insterfaces with different Ip and domain names. I am running Red Hat 5.4 on a sun X2270 server.

Thanks,
Pricy

Last edited by Pricy; 02-03-2012 at 02:26 PM. Reason: to add tags
 
Old 02-03-2012, 03:13 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
I'd really suggest you don't. Only put Apache on 443, and use mod_jk or mod_proxy to pass requests on to Tomcat. Don't expose more to the internet than you need to.
 
Old 02-06-2012, 02:02 PM   #3
Pricy
LQ Newbie
 
Registered: Sep 2010
Posts: 13

Original Poster
Rep: Reputation: 0
Ok. Thanks!
 
Old 05-09-2012, 03:26 PM   #4
Pricy
LQ Newbie
 
Registered: Sep 2010
Posts: 13

Original Poster
Rep: Reputation: 0
How do you configure mod_jk or mod_proxy?
 
Old 05-09-2012, 06:22 PM   #5
ratotopi
Member
 
Registered: Dec 2011
Posts: 105

Rep: Reputation: 6
First you need to install module in apache with mod_jk or mod_proxy. Here is the link for both modules mod_jk http://tomcat.apache.org/tomcat-3.3-..._jk-howto.html and mod_proxy http://httpd.apache.org/docs/2.0/mod/mod_proxy.html
 
Old 05-10-2012, 02:12 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
I never bother with mod_jk personally. it's more integrated to Tomcat and other web containers, but I prefer living in a standard HTTP world, and then mod_proxy is just a single line usually...

ProxyPass /<application> http://localhost:8080

although there are subtleties like the ProxyPreserveHost option which is often critical.
 
  


Reply

Tags
apache, tomcat


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache and tomcat compete for port 443 osuyz Linux - Software 2 12-02-2008 02:52 PM
Configuring Automatic Redirects from port 80 to port 443 with bundled Apache server kaplan71 Fedora 1 12-28-2007 08:30 AM
Help binding tomcat with apache colombo187 General 1 02-19-2006 03:07 AM
Apache Port 443 Verbal Kint Linux - Software 0 10-04-2005 03:07 AM
apache mod_ssl not using port 443 davidsrsb Slackware 8 06-07-2005 10:33 AM


All times are GMT -5. The time now is 08:54 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration