Welcome! Log In Create A New Profile

Advanced

handle request missing host header

Posted by eki33 
handle request missing host header
June 30, 2011 08:07PM
Hello all,

I have a robot that sends GET or POST requests, this robot can't specify it's client host header...

I see that Nginx handle the GET as a BAD REQUEST (400) :

access log:
10.0.0.4 - - [01/Jul/2011:01:04:22 +0000] "GET /index.html HTTP/1.0" 400 173 "-" "-"
erro log:
2011/07/01 01:04:22 [info] 1206#0: *41 client sent invalid host header while reading client request headers, client: 10.0.0.4, server: 10.0.0.1, request: "GET /index.html HTTP/1.0", host: ""

Is it possible to "force" nginx to hande the request anyway?

Thank you in advance.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 153
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready