小编tom*_*lec的帖子

配置 Apache 使用外部代理进行 HTTPS 连接

我试图让我的 Apache 对 HTTPS 请求使用外部代理:

Listen 80
Listen 443
..
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
..
SSLProxyEngine On
SSLProxyVerify none
SSLCACertificateFile conf/cert/curl-ca-bundle.cert

ProxyRemote http://*.externaldomain.com:80 http://external.proxy.com:8585
ProxyRemote http://*.externaldomain.com:443 https://external.proxy.com:8585
ProxyPass    /sub      https://sub.externaldomain.com/
Run Code Online (Sandbox Code Playgroud)

但是对http://localhost/sub/something 的请求 返回 503 并给出:

[Fri Apr 15 17:38:15 2011] [error] (OS 10060)A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.  : proxy: HTTPS: attempt to connect …
Run Code Online (Sandbox Code Playgroud)

ssl proxy apache-2.2

7
推荐指数
1
解决办法
1万
查看次数

标签 统计

apache-2.2 ×1

proxy ×1

ssl ×1