Opened 10 years ago

Closed 10 years ago

#474 closed defect (worksforme)

in a vhost,hostname can not be "res"

Reported by: 成 张 Owned by:
Priority: minor Milestone:
Component: nginx-core Version: 1.2.x
Keywords: vhost hostname Cc:
uname -a: Linux rickyzhang.me 2.6.32-042stab081.5 #1 SMP Mon Sep 30 16:52:24 MSK 2013 i686 i686 i386 GNU/Linux
nginx -V: 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

Description

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.

Change History (1)

comment:1 by Maxim Dounin, 10 years ago

Resolution: worksforme
Status: newclosed

Most likely, it's a configuration error somewhere else. First of all, try looking into error log. If it doesn't help, available support options are listed here.

Note: See TracTickets for help on using tickets.