Tomcat – Tunnel HTTP through HTTPS using Apache

apache-2.2PROXYreverse-proxytomcat

Is it possible to have an HTTPS frontend for an HTTP server?

Let me elaborate. Say I have an app running on a tomcat instance and this app only understands HTTP. Is it possible to have Apache sit in front of the tomcat app and proxying the requests as shown below:

        http://example.com/proxied_app                     http://localhost:8080
                       +----------+                        +----------+
                       |          |                        |          |
                       |          |                        |          |
Internet <----HTTPS--->|  APACHE  |<---------HTTP--------->|  TOMCAT  |
                       |          |                        |          |
                       |          |                        |          |
                       +----------+                        +----------+

Best Answer

Yes. That's what mod_proxy is for.

Related Topic