0
votes

It seems that it is possible to get Apache server to Proxy and Manage SSL handshake on https requests and service them as 'http' thru another server behind it.

I have configured an apache server for ProxyPass using following configuration

SSLProxyEngine On
ProxyPass / http://localhost:8081/
ProxyPassReverse / http://localhost:8081/

I am able to get all all traffic to the apache server that is listening to port 8080 direct and serve by the localhost:8081 server so

http://localhost:8080/hi is being correctly served by http://localhost:8081/hi

However the following does not work :

http**s**://localhost:8080/hi to be served by http://localhost:8081/hi

Apache is trying to pass the https:// traffic to the 8081 server, without managing the SSL handshake.

1

1 Answers

1
votes

Your Apache listener on port 8080 is an http listener, not an https listener. You can't handle both types of traffic on the same port. If you want to handle SSL traffic, you'll need to set up a new context on another port with SSLEngine On and all the other normal SSL configuration (certificate, key, etc).

This question has one version of this configuration.

Also this post.