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 |
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.
|
Ok. Thanks!
|
How do you configure mod_jk or mod_proxy?
|
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
|
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. |