WIN2003下Apache 代理不上

在Win2003上布置了一个ROR项目,Mongrel支持Rails程序一切正常,但在通过Apache 2.2.11代理时一直出现以下的错误。

Google查了很多原因并试用了很多种方法,情况依然没有得到解决,不知道大家在使用中这种问题都是怎么解决的,原因出在哪个方面。

 

Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /.

Reason: Error reading from remote server

 

httpd.conf中开启了proxy及balancer等模块.

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_http_module modules/mod_proxy_http.so

 

配置如下

ProxyRequests Off  
<Proxy balancer://myCluster> 
  BalancerMember http://localhost:4000    
</Proxy> 

NameVirtualHost *:80
<VirtualHost *:80> 
  ServerName www.test.cn 
  DocumentRoot F:/test/games/public
  ProxyPass /images !  
  ProxyPass /stylesheets !  
  ProxyPass /javascripts !  
  ProxyPass / balancer://myCluster  
  ProxyPassReverse / balancer://myCluster  
  ProxyPreserveHost on

  SetEnv force-proxy-request-1.0.1  
  SetEnv proxy-nokeepalive 1 
</VirtualHost>

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章