I work with application which comunicate with server over HTTP, but this server runs on HTTPS in my case and there is also basic authentication. There is no way to change this settings.
My idea is configure proxy on Apache server and then website wil be accessible at http://localhost/ and apache will be something like intermediator. I don't want redirect, rather something like mapping.
I tried configuration like below but it didn't work.
<VirtualHost *:80>
ServerName foo.com
SSLProxyEngine On
ProxyPass / https://login:passwd@secured.web.com
ProxyPassReverse / https://login:passwd@secured.web.com
</VirtualHost>
I will be glad for every idea.
A quick search reveals that something like this:
https://superuser.com/questions/704781/apache-mod-proxy-with-automatic-authentication
Should allow you to perform the authentication and add it into the header.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.