vendredi 21 septembre 2018

Set Host HttpRequest header in Apache Web Server 2.4

In our project we want to front end the Apache Tomcat 8.0.28 with Apache web server 2.4. Currently F5 load balancer sends the http request to Tomcat with blank value for Host HttpRequest header and tomcat is allowing the request. But, Apache web server 2.4 is not allowing and throwing Http Bad Request (400) with below error

AH00569: client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /health-check/monitor.html

We have tried below solutions to bypass this
1. HttpProtocolOptions Unsafe
2. RequestHeader set/add/append host "something" early

but still Host is coming blank to Apache and it is rejecting the request

Is there any proven way / third party module (like mod_security) to set the Host Http Request Header to some value ?




Aucun commentaire:

Enregistrer un commentaire