我正在使用apache反向代理到一个后端mod_proxy服务器,该服务器在一个非标准端口上工作(被几个防火墙阻止,因此需要反向代理)。
客户端通过HTTPS连接到apache,然后apache又连接到我所认为的nginx或tomcat服务器(后端服务器是Zimbra邮件服务器管理控制台)。
我在日志中看到以下错误
[Thu Jun 27 11:35:26 2013] [debug] mod_proxy_http.c(56): proxy: HTTP: canonicalising URL //[internal_url]:7071/
[Thu Jun 27 11:35:26 2013] [debug] proxy_util.c(1506): [client [client_ip] proxy: https: found worker https://[internal_url]:7071/ for https://[internal_url]:7071/
[Thu Jun 27 11:35:26 2013] [debug] mod_proxy.c(968): Trying to run scheme_handler against proxy
[Thu Jun 27 11:35:26 2013] [debug] mod_proxy_http.c(1973): proxy: HTTP: serving URL https://[internal_url]:7071/
[Thu Jun 27 11:35:26 2013] [debug] proxy_util.c(1949): proxy: HTTPS: retrying the worker for ([internal_url])
[Thu Jun 27 11:35:26 2013] [debug] proxy_util.c(1955): proxy: HTTPS: worker for ([internal_url]) has been marked for retry
[Thu Jun 27 11:35:26 2013] [debug] proxy_util.c(2011): proxy: HTTPS: has acquired connection for ([internal_url])
[Thu Jun 27 11:35:26 2013] [debug] proxy_util.c(2067): proxy: connecting https://[internal_url]:7071/ to [internal_url]:7071
[Thu Jun 27 11:35:26 2013] [debug] proxy_util.c(2193): proxy: connected https://[internal_url]:7071/ to [internal_url]:7071
[Thu Jun 27 11:35:26 2013] [debug] proxy_util.c(2444): proxy: HTTPS: fam 2 socket created to connect to [internal_url]
[Thu Jun 27 11:35:26 2013] [debug] proxy_util.c(2285): proxy: CONNECT: sending the CONNECT request for [internal_url]:7071 to the remote proxy [internal_ip]:7071 ([internal_url])
[Thu Jun 27 11:35:26 2013] [error] (70014)End of file found: proxy: HTTPS: attempt to connect to [internal_url]:7071 via http CONNECT through [internal_ip]:7071 ([internal_url]) failed
[Thu Jun 27 11:35:26 2013] [error] ap_proxy_connect_backend disabling worker for ([internal_url])
[Thu Jun 27 11:35:26 2013] [debug] proxy_util.c(2029): proxy: HTTPS: has released connection for ([internal_url])在安装了“libapache2.2.22-6ubuntu2.2”和“libapache2-mod-proxy-html3.0.1-1.1”包的Ubuntu12.10服务器上进行以下配置
ProxyRequests on
ProxyRemote * https://[internal_url]:7071
ProxyPass / https://[internal_url]:7071/
ProxyPassReverse / https://[internal_url]:7071/
ProxyPassReverseCookieDomain [internal_url] [external_url]
SSLProxyEngine on
ProxyPreserveHost on
ProxyVia on我不知道我还能做什么。后端服务器站点可以通过lynx从apache服务器访问,所以对我来说这不是一个显而易见的问题。
发布于 2013-07-18 01:09:06
如果我没理解错你的问题--你的通信路径是这样的
浏览器Apache后端服务器
在这种情况下,您必须删除ProxyRemote指令-因为只有在您通过另一个代理与后端服务器通信时才需要它。
https://stackoverflow.com/questions/17332606
复制相似问题