400 response seen due to host mismatch after upgrade to Tomcat 9
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.