8 messages in ru.sysoev.nginxRe: sign * in server_name
FromSent OnAttachments
Martin MinkaJun 5, 2007 11:50 pm 
Igor SysoevJun 6, 2007 1:53 am 
Wayne E. SeguinJun 6, 2007 4:49 am 
Igor SysoevJun 6, 2007 12:22 pm.txt
Martin MinkaJun 8, 2007 11:57 am 
Martin MinkaJun 12, 2007 2:50 pm 
Igor SysoevJun 13, 2007 3:31 am 
Igor SysoevJun 13, 2007 3:38 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: sign * in server_nameActions...
From:Igor Sysoev (is-G@public.gmane.org)
Date:Jun 13, 2007 3:38:21 am
List:ru.sysoev.nginx

On Fri, Jun 08, 2007 at 08:57:34PM +0200, Martin Minka wrote:

I tested the server_name directive and it works. The usage of _ is a little bit annoying, could it be fixed in future ?

Tested example in file nginx.conf.default :

server { listen 80; # server_name test.*; # does not work ! server_name _ test.*; # works fine location / { root html; index test.html; } }

The first server name should not be wildcard, because HTTP/1.0 request may be done without "host" header and when nginx will return redirect /dir -> /dir/ it using first server_name.

I can allow

server_name *.example.com;

but nginx should warn about it.