Apache ProxyPass and ReverseProxy to a SSL HTTPS configured domain.

Posted March 4, 2015 163.6k views


I hope you can help with this because I am a little bit confused.

I’m running apache 2.2 httpd and want to communicate using ProxyPass and ProxyPassReverse to a secured server which is also HTTPS SSL.

Sample architecture:

Outside world ==> https ssl Apache 2.2 httpd (localhost) ==> Secured server Https ssl (
I am the middle man here.

What exactly do I need from them ( in order for me to configure Apache 2.2 httpd-ssl.conf properly? Do I only need their public key? I don’t think I also need their certificate, otherwise I can generate their private key. I don’t think that’s handy…and insecured.

This is my current configuration for when the outside world visit the middle man apache server.


LoadModule sslmodule modules/
LoadModule proxymodule modules/
LoadModule proxyhttpmodule modules/

Listen 8443

<VirtualHost *:8443>
ServerName localhost.localdomain
SSLEngine on
SSLCertificateFile /etc/httpd/conf.d/ssl/server.crt
SSLCertificateKeyFile /etc/httpd/conf.d/ssl/server_priv.pem

ProxyRequests off
SSLProxyEngine on
Loglevel debug

ErrorLog /home/df/Desktop/errorLog443.txt
TransferLog /home/df/Desktop/transferLog

<Location /gd_endpoint/>
Order deny,allow
Deny from all
Allow from all

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

After doing some digging on this particular need I was able to find this thread on the Ubuntu forums which outlines the same problem and provides a solution with an example configuration file known to be working.