Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/http/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache反向代理请求站点每个资源的凭据_Apache_Http_Proxy_Mod Proxy - Fatal编程技术网

Apache反向代理请求站点每个资源的凭据

Apache反向代理请求站点每个资源的凭据,apache,http,proxy,mod-proxy,Apache,Http,Proxy,Mod Proxy,您好,我是apache新手。所以,如果这太基本,请不要太难 我一直在自己练习寻找解决方案,但我有一个我无法理解的特殊方案 我设法设置一些反向代理来转发我在内联网上的网站(通过VPN转发到外部网络) 我搞不清楚的是,当我通过代理访问这个站点时,它会提示输入用户名和密码,但它会对需要下载的每个资源都这样做,例如:图像、样式表、脚本等等 有没有一种方法可以配置ApacheConfs来管理它,并存储某种cookie或缓存来避免这种情况,只需输入一次登录凭据 以下是我拥有的vhost文件: ProxyR

您好,我是apache新手。所以,如果这太基本,请不要太难

我一直在自己练习寻找解决方案,但我有一个我无法理解的特殊方案

我设法设置一些反向代理来转发我在内联网上的网站(通过VPN转发到外部网络)

我搞不清楚的是,当我通过代理访问这个站点时,它会提示输入用户名和密码,但它会对需要下载的每个资源都这样做,例如:图像、样式表、脚本等等

有没有一种方法可以配置ApacheConfs来管理它,并存储某种cookie或缓存来避免这种情况,只需输入一次登录凭据

以下是我拥有的vhost文件:

 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"

ProxyRequests关闭
代理主机关闭
命令拒绝,允许
通融
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未设置接受编码
AddOutputFilterByType替换文本/html
代替|http://intrasrv01:8080/|http://172.16.27.7:8080/|倪“