From 3f24ae2be259ee1be922ebb65d29c5aea8abb394 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Sat, 29 Dec 2007 15:30:39 +0000 Subject: several changes in server_name: *) server_name_in_redirect directive and removal of the '*' stub *) use server address in redirect if host can not be detected *) ngx_http_server_addr() *) allow wildcard and regex names to be a main server_name *) DAV Destination header is tested against Host header --- src/http/ngx_http_request.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/http/ngx_http_request.c') diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index a5ebf1292..16f82c903 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -1515,13 +1515,6 @@ ngx_http_find_virtual_server(ngx_http_request_t *r, u_char *host, size_t len, #endif - cscf = ngx_http_get_module_srv_conf(r, ngx_http_core_module); - - if (cscf->wildcard) { - r->server_name.len = len; - r->server_name.data = host; - } - return; found: -- cgit v1.2.3