Apache ProxyPass with SSL
Solution 1:
You'll need mod_ssl
, mod_proxy
and optionally mod_rewrite
. Depending on your distribution and Apache version you may have to check if mod_proxy_connect
and mod_proxy_http
are loaded as well.
The directives for enabling SSL proxy support are in mod_ssl:
<VirtualHost 1.2.3.4:80>
ServerName foo.com
SSLProxyEngine On
SSLProxyCheckPeerCN on
SSLProxyCheckPeerExpire on
ProxyPass / https://secure.bar.com
ProxyPassReverse / https://secure.bar.com
</VirtualHost>
IIRC you can also use:
RewriteRule / https://secure.bar.com [P] # don't forget to setup SSLProxy* as well
Solution 2:
In Apache 1.x, mod_ssl
would fix up ProxyPass. Do you have mod_ssl
installed?