apache 的http代理出错 502 Proxy Error |
|
发起人:piaoling 回复数:2 浏览数:11642 最后更新:2009/1/8 22:21:27 by piaoling |
选择查看 | 搜索更多相关主题 帖子排序: |
piaoling 发表于 2009/1/8 22:16:56
|
apache 的http代理出错 502 Proxy Error The proxy server received an invalid response from an upstream server. Reason: Error reading from remote server Apache/2.2.9 (Win32) PHP/5.2.6 Server at www.domain.cn Port 80
就这个问题Google了一下发现是mod_proxy的事,又G了一下他的文档 <Location /buggyappserver/> ProxyPass http://abc:7001/ SetEnv force-proxy-request-1.0 1 SetEnv proxy-nokeepalive 1 </Location> JkMount /hr/servlet/* worker1 JkMount /hr/*.jsp worker1 JkMount /hr/*.do worker1 ServerAdmin abc@163.com ServerName www.abc.com ServerAlias www.abc.com.cn RewriteEngine On RewriteRule ^/$ /hr/ [R,P] SetEnv force-proxy-request-1.0.1 SetEnv proxy-nokeepalive 1 </VirtualHost>
|
piaoling 发表于 2009/1/8 22:20:57
|
修改 httpd.conf
<VirtualHost *:80> ServerAdmin asion@mail.com ServerName www.domain.com ProxyPass / http://192.168.0.92 ProxyPassReverse / http://192.168.0.92 SetEnv force-proxy-request-1.0.1 SetEnv proxy-nokeepalive 1 </virtualHost> |
piaoling 发表于 2009/1/8 22:21:27
|
当 |
返回页首↑ |