Mercurial > hg > nginx
comparison src/http/ngx_http_request.c @ 1804:d457a1576532
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
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sat, 29 Dec 2007 15:30:39 +0000 |
parents | d62a7b91ed35 |
children | bb72f7518992 |
comparison
equal
deleted
inserted
replaced
1803:7405719e4848 | 1804:d457a1576532 |
---|---|
1513 } | 1513 } |
1514 } | 1514 } |
1515 | 1515 |
1516 #endif | 1516 #endif |
1517 | 1517 |
1518 cscf = ngx_http_get_module_srv_conf(r, ngx_http_core_module); | |
1519 | |
1520 if (cscf->wildcard) { | |
1521 r->server_name.len = len; | |
1522 r->server_name.data = host; | |
1523 } | |
1524 | |
1525 return; | 1518 return; |
1526 | 1519 |
1527 found: | 1520 found: |
1528 | 1521 |
1529 r->server_name.len = len; | 1522 r->server_name.len = len; |