【发布时间】:2019-08-06 04:02:30
【问题描述】:
在这里重新询问the question from HA-Proxy discourse site,希望得到更多关注。
我正在使用 HA-Proxy 版本 1.9.4 2019/02/06 将 HTTP 流量代理到 h2c 后端。但是,我看到 HA-Proxy 在代理请求时将 :scheme 设置为 https (据我所知,在请求中使用 SSL)。当我直接点击后端时, :scheme 设置为 http 并且请求如预期的那样是非 SSL 的。我已经使用 wireshark 验证了这种 HA-Proxy 行为。
关于我应该在我的配置中进行哪些更改以便我可以设置以确保在将请求代理到后端时将 :scheme 设置为 http 的任何建议?
我正在使用 curl 7.54.0 发出请求: $卷曲http://localhost:9090 HA-Proxy 正在侦听端口 9090。
我的 HA-Proxy 配置文件:
global
maxconn 4096
daemon
defaults
log global
option http-use-htx
timeout connect 60s
timeout client 60s
timeout server 60s
frontend waiter
mode http
bind *:9090
default_backend local_node
backend local_node
mode http
server localhost localhost:8080 proto h2
【问题讨论】: