服务器 Gind.cn

服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器

通过反向代理向内部HTTPS站点提供HTTP访问

我正在尝试为内部HTTPS服务器设置一个HTTP反向代理。 作为一个旁注,是的,我知道我抛弃了所有的安全。 原来的HTTPS服务器本质上对我们来说并不敏感,运行它的产品不允许以任何方式closuresHTTPS或重新configurationembedded式Web服务器。 我尝试过使用Nginx,但是大多数人似乎都在使用Apache,所以这就是我现在正在尝试的。 这是我目前的虚拟主机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> 当我尝试打开http://server.domain.com:10443/时出现错误“401 Unauthorized”。 在其他的ServerFault问题中,我看到了对UnknownSSLDirectives的引用,但是Apache抱怨这个选项不存在。 而使用SSLProxyMachineCertificateFile而不是SSLProxyCACertificateFile,但是Apache抱怨在这种情况下SSL设置是不完整的。 我很困难。 我怎样才能debugging或取得进展? 谢谢!