Quantcast
Viewing all articles
Browse latest Browse all 4731

Http/2 rewriting headers doesn't work

@bouke wrote:

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
  (...)

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4731

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>