Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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://localhost:8080
                       +----------+                        +----------+
                       |          |                        |          |
                       |          |                        |          |
Internet <----HTTPS--->|  APACHE  |<---------HTTP--------->|  TOMCAT  |
                       |          |                        |          |
                       |          |                        |          |
                       +----------+                        +----------+
share|improve this question
up vote 9 down vote accepted

Yes. That's what mod_proxy is for.

share|improve this answer
If you're connecting to a Tomcat instance, consider using mod_proxy_ajp. Same configuration but uses a Tomcat connector for better performance. – Tom Marthenal Jul 23 '12 at 2:47
If you choose to use HTTP between webserver and tomcat, consider replacing apache by varnish for real performance reason – user130370 Dec 16 '13 at 21:29

Jenny D answer is fine: just to add that in this case you can also use mod_jk when connecting Apache Httpd with Apache Tomcat.

share|improve this answer
These days mod_ajp is a much better option. – bahamat Jul 17 '12 at 20:05
@bahamat do you mean mod_proxy_ajp? – Tom Marthenal Jul 23 '12 at 2:46
@TomMarthenal: Yes, that's the one. (I didn't look it up, just wrote that from memory and I haven't used it in a while). Thanks. – bahamat Jul 23 '12 at 15:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.