2013-01-04 39 views
2

我目前使用node spdy來提供文件。這工作很好。HAproxy和Node.js + Spdy

但是我想用HAproxy在這些節點服務器之間進行負載平衡。但是當我的節點/ spdy服務器在HAproxy後面時,request.isSpdyfalse ...所以spdy突然不被支持?

這裏是我的HAProxy的配置: 全球 MAXCONN 4096

defaults 
    timeout connect 5000ms 
    timeout client 50000ms 
    timeout server 50000ms 

frontend http_proxy 
    mode http 
    bind *:80 
    redirect prefix https://awesome.com code 301 

frontend https_proxy 
    mode tcp 
    bind *:443 
    default_backend webservers 

backend webservers 
    balance source 
    server server1 127.0.0.1:10443 maxconn 4096 
    # server server2 127.0.0.1:10444 maxconn 4096 

謝謝!

回答