如何增加请求header大小限制Haproxy?

How to increase the request header size limit Haproxy?

如何增加haproxy中的header大小限制,目前默认设置只允许8KB。

因此,我们在客户端面临 400 错误。 localhost haproxy[21502]: xx.xx.xx.xx:xxxx [xx/xxx/xxxx:xx:xx:xx.xx] www-http www-http/ -1/-1/-1/ -1/0 400 187 - - PR-- 411/23/0/0/0 0/0 “”

您可以将 tune.maxrewrite 设置为更高的值。
强烈建议 header 小于 8KB。

这里有一个 link,它显示了 header 对不同服务器的限制 Maximum HTTP request header size defaults compared across web servers