Im trying to config a reverse proxy server (Centos 7). The virtual host configuration as below:
<VirtualHost *:443> ServerName www.example2.com ServerAlias example2.com ProxyPass / https://keycdn.com/ ProxyPassReverse / https://keycdn.com/ SSLEngine on SSLProxyEngine on SSLCertificateFile /etc/ssl/certs/apache-selfsigned.crt SSLCertificateKeyFile /etc/ssl/private/apache-selfsigned.key ErrorLog /var/log/httpd/example.com-error.log CustomLog /var/log/httpd/example.com-access.log combined </VirtualHost>
It is always do redirect to the actual URL rather than working as reverse-proxy, but working well for http site :
ProxyPass / http://example.com/ ProxyPassReverse / http://example.com/
Anybody can enlighten me on what should I do to able doing ProxyPass/ProxyPassReverse for HTTPS. Thanks.
It always reply 301-Moved Permanently for https proxypass.