10 messages in ru.sysoev.nginxRe: Empty server name argument - Can'...
FromSent OnAttachments
Luigi PerrotiAug 28, 2008 1:35 am 
Igor SysoevAug 28, 2008 1:56 am 
Luigi PerrotiAug 28, 2008 3:46 am 
Igor SysoevAug 28, 2008 3:48 am 
Luigi PerrotiAug 28, 2008 4:20 am 
Igor SysoevAug 28, 2008 4:33 am 
Luigi PerrotiAug 28, 2008 5:05 am 
Igor SysoevAug 28, 2008 5:16 am 
Luigi PerrotiAug 28, 2008 6:00 am 
Igor SysoevAug 28, 2008 6:05 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Empty server name argument - Can't get it to workActions...
From:Luigi Perroti (luig@public.gmane.org)
Date:Aug 28, 2008 3:46:08 am
List:ru.sysoev.nginx

On 8/28/08, Igor Sysoev <is-G@public.gmane.org> 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 { listen 123.123.123.123:80; 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.

Regards, -Luigi