﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
474	"in a vhost,hostname can not be ""res"""	成 张		"i want to have a vhost to autoindex the files,so i add a vhost in nginx.conf:
server {
    listen       80;
    server_name res.rickyzhang.me;
    root  /home/wwwroot/default/res;
    location = / {
        autoindex      on;
    }
    access_log  /home/wwwlogs/access_res.log  access;
}
it does not work,it always gives me a 400 response code,i am sure the browser send a right request.i feel confused,i check nginx.conf carefully,and find nothing wrong.
At last,i just change the hostname from res to dw,it works,i am not sure whether it is a bug,i search on google ,and find nothing related."	defect	closed	minor		nginx-core	1.2.x	worksforme	vhost hostname		Linux rickyzhang.me 2.6.32-042stab081.5 #1 SMP Mon Sep 30 16:52:24 MSK 2013 i686 i686 i386 GNU/Linux	"nginx version: nginx/1.2.7
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC)
TLS SNI support enabled
configure arguments: --user=www --group=www --prefix=/usr/local/nginx
--with_http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-ipv6
"
