Apache Reverse proxy asking for credentials for every resource of a site

邮差的信 提交于 2021-02-10 18:37:36

问题


Greetings I am new to apache. so please dont be so hard if this is too basic

I've been practicing by my self looking for scenarios to solve, but I have this a particular one that I can[t figure out.

I manage to set some sore of reverse proxy to forward a website that I have on an intranet.(forward it to external net throug VPN).

The thing I can't figure out is that when I acces this site through the proxy, it prompts to enter the user name an pass but it is doing this for every resource that needs to download, eg: images, style sheets,scripts every thing.

Is there a way I can configure apache confs to manage this and store some kind of cookie or cache to avoid this and enter login credentials just once.?

here is the conf I have vhost file:

 ProxyRequests Off
 ProxyPreserveHost Off

 <Proxy *>
     Order deny,allow
     Allow from all
 </Proxy> 

    ProxyPass    /innerLink/    http://intrasrv01:8080/sites/Home.aspx
    ProxyPassReverse /innerLink/ http://intrasrv01:8080/sites/Home.aspx

ProxyPass /  http://intrasrv01:8080/
ProxyPassReverse /  http://intrasrv01:8080/

RequestHeader unset Accept-Encoding
AddOutputFilterByType SUBSTITUTE text/html
Substitute "s|http://intrasrv01:8080/|http://172.16.27.7:8080/|ni"

来源:https://stackoverflow.com/questions/60833419/apache-reverse-proxy-asking-for-credentials-for-every-resource-of-a-site

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!