﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
571	Nginx treats dashes in server_name as catch-all servers	Jad Joubran		"The following nginx configuration


{{{
server {
    listen 80;
    server_name aaa.example.com;
    root /var/www/aaa;
}

server {

    listen 80;
    server_name hello-world.example.com;
    root /var/www/hello;
}
}}}


because the server_name of the second server contains a dash (-), nginx will always open the second server (whether you go to hello-world.example.com or aaa.example.com)

I fixed it by renaming hello-world to helloworld (removing the dash fixed the issue)."	defect	closed	major		nginx-core	1.4.x	worksforme	server_name		Linux production-etobb 3.14.4-x86-linode59 #1 SMP Tue May 13 12:23:36 EDT 2014 i686 i686 i386 GNU/Linux	nginx version: nginx/1.4.1
