This question has been asked a few times over the years:
But I'm hoping the answer may have changed recently. I am working on deprecating a legacy application in which I have no control over the client behavior. Specifically, the clients are making requests via HTTP/1.1
, but do not include a Host
header. Nginx follows the RFC in this case and returns a 400
error. I need to override this behavior and accept these requests. Is there any way to do so?