I have a backend that is setup serving requests as
http://fakehost, whilst my haproxy is configured to serve requests for
http://realhost. I want to enable HTTP/2, so I added
alpn h2,http/1.1 to my config. However the rule for rewriting the
Host: header no longer works after making this change. My simplified config is listed below. Is modifying headers supported with HTTP/2, and if so, how?
frontend a bind ... alpn h2,http/1.1 default_backend b (...) backend b reqrep ^Host:\ realhost Host:\ fakehost (...)