Proxied HTTP/2 request to Tomcat fails if client request Host header includes port

Solution Verified - Updated -

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 or localhost:80 instead of just localhost). 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content