Apache代理 – HTTP到HTTPS

我使用通过HTTP与服务器通信的应用程序,但在我的情况下,此服务器在HTTPS上运行,并且还有基本身份validation。 没有办法改变这个设置。

我的想法是configurationApache服务器上的代理,然后网站将访问http:// localhost /和apache将像中介。 我不想redirect,而是像映射。

我尝试像下面的configuration,但没有奏效。

<VirtualHost *:80> ServerName foo.com SSLProxyEngine On ProxyPass / https://login:passwd@secured.web.com ProxyPassReverse / https://login:passwd@secured.web.com </VirtualHost> 

我会为每个想法感到高兴。

快速搜索可以发现这样的事情:

https://superuser.com/questions/704781/apache-mod-proxy-with-automatic-authentication

应允许您执行身份验证并将其添加到标题中。