Running Tomcat 7 and Apache 2 on the same server

Posted by Thorn on Server Fault See other posts from Server Fault or by Thorn
Published on 2012-03-21T11:06:16Z Indexed on 2012/03/21 11:31 UTC
Read the original article Hit count: 205

Filed under:
|

Part of my site needs to run over HTTPS and I'm creating a sub-domain for that part. I have apache httpd 2 AND Tomcat 7 running on the same server with the same IP, Apache is on port 80 of course, while Tomcat is running on port 8080. Right now I am doing domain forwarding for requests that need to run off tomcat. For example, mathteamhosting.com/mathApp can forward to mathteamhosting.com:8080/mathApp.

I would like to have Tomcat handle the https requests for that subdomain. I don't think this forwarding technique can work in this case. How do I set that up so that Tomcat receives the requests on port 443 while apache handles port 80.

To be more specific:
http://proctinator.com ==> request goes to Apache web server
https://private.proctinator.com ==> request goes to Apache web server

© Server Fault or respective owner

Related posts about apache2

Related posts about tomcat