Host attack in jboss http header

ask heroes, jboss does not have a domain name, use IP to access.

web directory, A common subdirectory
curl-I-H "Host: www.baidu.com"http://127.0.0.1:8080/web/common/"
jumps to page 404
curl-I-H" Host: www.baidu.com "" http://127.0.0.1:8080/web/common"
returns:
HTTP/1.1 302 Moved Temporarily
Location: http : / / www.baidu.com/web/common/
Transfer-Encoding: chunked
Date: Wed, 23 May 2018 13:34:39 GMT
Server: VPS

Please advise how to configure to prevent Location redirection http://www.baidu.com/web/common/ IP address 127.0.0.1 is filled in the Http request header host value www.baidu.com.

Thank you!

Mar.13,2021
Menu