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:Igor Sysoev (is-G@public.gmane.org)
Date:Aug 28, 2008 4:33:00 am
List:ru.sysoev.nginx

On Thu, Aug 28, 2008 at 01:21:04PM +0200, Luigi Perroti wrote:

On 8/28/08, Igor Sysoev <is-G@public.gmane.org> wrote:

2) or any successfull AND 400 requets without Host header ?

I would like to do exactly that, is it possible?

Try the following:

http { access_log off; recursive_error_pages off; server { listen 123.123.123.123:80; server_name _ ""; error_page 400 /400.html;

location /400.html { internal;

if ($http_host) { break; }

fastcgi_pass 127.0.0.1:1234; access_log /var/log/access.log; }

location / { fastcgi_pass 127.0.0.1:1234; fastcgi_intercept_errors on; } } }