Reverse proxying to https apache

apache-2.2httpsmod-proxy

I'm trying to reverse proxy https from http virtual host but getting an internal server error.
Here is my config :

ProxyPass /access/signin https://mysecureserver.com 
ProxyPassReverse /access/signin https://mysecureserver.com

in the logs I get the following:

[warn] proxy: No protocol handler was valid for the URL
/access/signin. If you are using a DSO version of mod_proxy, make sure
the proxy submodules are included in the configuration using
LoadModule.

I am loading mod_proxy_http, here is the configuration for that:

LoadModule proxy_module /opt/apache22/modules/mod_proxy.so
LoadModule proxy_http_module /opt/apache22/modules/mod_proxy_http.so

Does anyone know what the problem might be ?

Best Answer

try loading mod_ssl.so module:

LoadModule ssl_module /some/path/mod_ssl.so

and then using:

SSLProxyEngine On
SSLProxyCACertificateFile /etc/apache2/certificate.pem
ProxyPass /access/signin https://mysecureserver.com 
ProxyPassReverse /access/signin https://mysecureserver.com

where /etc/apache2/certificate.pem is created from the output of

openssl s_client -connect mysecureserver.com:443 -showcerts