Empty server name argument - Can't get it to work

Luigi Perroti luigi.perroti at googlemail.com
Thu Aug 28 14:46:31 MSD 2008

On 8/28/08, Igor Sysoev <is at rambler-co.ru> wrote:

> $host is this case is "_", server_name. You should use $http_host.

Thanks, now logging works fine when no Host: header is specified.

Still I can't get a request with a missing Host: header to be routed
to the fastcgi server.
As mentioned in the previous message I'm using

server {
  server_name _ "";

I also tried with different syntaxes but nginx still serves the custom
400 page as soon as it receives a request with a missing Host: header.


More information about the nginx mailing list