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>

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