400 response seen due to host mismatch after upgrade to Tomcat 9

Solution Verified - Updated -

Issue

  • After upgrading to Tomcat 9, we see some request constantly fail with a 400 response. We note this is seen if the request contains a mismatch between the host info in the request line and the host header:
GET http://localhost/app HTTP/1.1
Host: 127.0.0.1

Environment

  • JBoss Web Server (JWS) 5.x
    • Tomcat 9.0.x

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