I am trying to set up an HTTP reverse proxy to an internal HTTPS server. As a sidenote, yes, I know I am throwing all security away. The original HTTPS server is not sensitive in nature for us, and the product that runs it does not allow turning off HTTPS or reconfiguring the embedded webserver in any way.
I have tried with Nginx, but most people out there seem to be using Apache, so that's what I'm trying now.
This is my current virtual host configuration:
<VirtualHost 0.0.0.0:10443> ServerName server.domain.com SSLProxyEngine on #UnknownSSLDirectives #SSLProxyMachineCertificateFile /etc/apache2/selfsignedcert.pem SSLProxyCACertificateFile /etc/apache2/selfsignedcert.pem ProxyRequests Off ProxyPass / https://internalserver.internaldomain.com:2941/ ProxyPassReverse / https://internalserver.internaldomain.com:2941/ <Proxy> Order Deny,Allow Allow from all </Proxy> RequestHeader unset Authorization ErrorLog /var/log/apache2/internalserver-error.log CustomLog /var/log/apache2/internalserver-access.log common </VirtualHost>
When I try to open http://server.domain.com:10443/ I get the error "401 Unauthorized".
In other ServerFault questions I saw references to UnknownSSLDirectives, but Apache complains that the option doesn't exist. And to using SSLProxyMachineCertificateFile instead of SSLProxyCACertificateFile, but Apache complains that the SSL setup is incomplete in that case.
I am quite stuck. How can I debug this or make some progress? Thank you!