aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-12-29 15:30:39 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-12-29 15:30:39 +0000
commit3f24ae2be259ee1be922ebb65d29c5aea8abb394 (patch)
treeec8627e0898396bd12c2a6fd29d6cf362bd84011 /src/http/ngx_http_request.c
parent5dff77ad7f1517a9d986b9c90fae953e7c98dd79 (diff)
downloadnginx-3f24ae2be259ee1be922ebb65d29c5aea8abb394.tar.gz
nginx-3f24ae2be259ee1be922ebb65d29c5aea8abb394.zip
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
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r--src/http/ngx_http_request.c7
1 files changed, 0 insertions, 7 deletions
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: