支持身份验证的企业代理后面的Apache

时间:2018-11-06 15:17:15

标签: apache web proxy corporate

我需要在没有Internet连接的CentOS服务器上通过Apache部署Web应用程序(使用Google的reCaptca),仅通过代理即可。

要从cmd访问任何站点,我下一步

export https_proxy=https://${user}:${password}@10.144.200.11:80
curl -k https://www.google.com

或卷曲时具有base64凭据

export https_proxy=https://10.144.200.11:80
curl -k -H"Proxy-Authorization: Basic ${base64_creds}" https://www.google.com

因此,为了使Web应用程序正常工作,我尝试了一下(破坏者:对我而言没有任何作用)

  1. export https_proxy=...的系统范围内添加/etc/environment并重新启动
  2. 在/ etc / sysconfig / httpd中添加SetEnv https_proxy ...并重新加载systemd和服务本身
  3. 使用ProxyRemote

我打开了mod_proxymod_proxy_httpmod_proxy_connect,并尝试了VirtualHost内部的许多配置变化:

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

ProxyRequests on
RequestHeader set Proxy-Authorization "*base64_creds*"
RequestHeader add Authorization "*base64_creds*"

ProxyRemote * https://10.144.200.11:80
# + tried all below and much more
# ProxyRemote https://www.google.com/ https://*base64_creds*@10.144.200.11:80
# ProxyRemoteMatch google\.com https://10.144.200.11:80
# ProxyRemote google\.com https://10.144.200.11:80
# ProxyRemote google.com https://10.144.200.11:80

我已将日志转到debug,但没有看到任何有关代理服务器的信息... 我究竟做错了什么?有办法使这项工作吗?

0 个答案:

没有答案
相关问题