Support #399
Using mod_proxy to Proxy SSL Traffic on Apache 2.2
Description
I had a virtual host that needed to proxy SSL traffic to another host inside my DMZ. In order to accomplish this I used Apache mod_proxy and added the following to my vhost configuration:
<VirtualHost *:443> ServerAdmin root@example.com DocumentRoot "/usr/local/www/apache22/data/www.example.com" ServerName www.example.com ErrorLog "/var/log/www.example.com-error_log" CustomLog "/var/log/www.altservice.com-access_log" common <IfModule mod_ssl.c> SSLEngine on SSLProxyEngine on SSLCertificateFile /usr/local/etc/apache22/ssl/www.example.com.crt SSLCertificateKeyFile /usr/local/etc/apache22/ssl/www.example.com.key SSLCACertificateFile /usr/local/etc/apache22/ssl/www.example.com.bundle </IfModule> ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> <Location /> ProxyPass https://www.example.com/ ProxyPassReverse https://www.example.com/ </Location> </VirtualHost>
This will take all SSL web traffic and proxy it to the host inside the DMZ.