【发布时间】:2012-12-18 10:57:00
【问题描述】:
我目前正在使用node spdy 来提供文件。这很好用。
但是,我想使用 HAproxy 在这些节点服务器之间进行负载平衡。但是当我的 node/spdy 服务器在 HAproxy 后面时,request.isSpdy 是false...所以突然不支持 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
谢谢!
【问题讨论】: