我有一个超文本传输协议模式下的HAProxy工作,一切都进行得很顺利。
但是当我在URI中发送一个带有空格(是ASCII 32)的请求时,发生了一些奇怪的事情!
我收到状态码400:你的浏览器发送了一个无效的请求。
这是请求,您可以使用curl进行测试:
# Do not use browser like Chrome or Firefox, or the request will be encoded
# before is was sent to HAProxy
# haproxy is my testing server here
curl -i -v 'http://hapro
我正在尝试在haproxy后端模块配置中使用域名 backend prod_auth
balance leastconn
option httpchk GET /auth-service/generalhealthcheck
http-check expect string "Service is up and reachable"
server auth-service-1 domain-service.com:8080 check 但是haproxy使用domain-service.com的IP(10.1.122.83)而不是域名本身来做健康检查,这是一个
让node.js websockets通过haproxy运行,并且已经成功运行了几个月。
现在给出错误
Error during WebSocket handshake: 'Connection' header value is not 'Upgrade'
相同的代码/设置仍在开发计算机上运行
任何想法/建议都非常感谢!
firefox工作正常!chrome错误来自主服务器,但在本地工作正常