Proxied HTTP/2 request to Tomcat fails if client request Host header includes port
Issue
- We have set up httpd to proxy HTTP/2 to Tomcat. This works except if a client provides a port on the Host header (so a host header value of
localhost:443
orlocalhost:80
instead of justlocalhost
). Debug logs show:
[proxy_http2:debug] [pid 179531:tid 140592348468992] h2_proxy_session.c(154): [remote ::1:8443] AH03341: h2_proxy_session(000): recv FRAME[GOAWAY[error=9, reason='There was an error during the HPACK decoding of HTTP headers', last_stream=0]]
Environment
- Red Hat Enterprise Linux
- JBoss Core Services (JBCS)
- Apache httpd
- JBoss Web Server (JWS)
- Tomcat
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.