LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Binding Apache and Tomcat to use port 443 (https://www.linuxquestions.org/questions/linux-software-2/binding-apache-and-tomcat-to-use-port-443-a-927458/)

Pricy 02-03-2012 02:25 PM

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

acid_kewpie 02-03-2012 03:13 PM

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.

Pricy 02-06-2012 02:02 PM

Ok. Thanks!

Pricy 05-09-2012 03:26 PM

How do you configure mod_jk or mod_proxy?

ratotopi 05-09-2012 06:22 PM

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

acid_kewpie 05-10-2012 02:12 AM

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.


All times are GMT -5. The time now is 04:52 PM.