diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-06-11 19:49:22 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-06-11 19:49:22 +0000 |
commit | 9d8a75c5256ada429fdeff93584044eca6cf1a56 (patch) | |
tree | 98226bea23d49242292bd5ee4ec0c969d07099b6 /src/http/ngx_http_request.c | |
parent | ad39e5c7464bebda27c1ccb85fa4872265a399d0 (diff) | |
download | nginx-9d8a75c5256ada429fdeff93584044eca6cf1a56.tar.gz nginx-9d8a75c5256ada429fdeff93584044eca6cf1a56.zip |
the "www.example.*" wildcard hash support
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r-- | src/http/ngx_http_request.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index 0306bf656..66381e031 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -1459,19 +1459,10 @@ ngx_http_find_virtual_server(ngx_http_request_t *r, u_char *host, size_t len, vn = r->virtual_names; - if (vn->hash.buckets) { - cscf = ngx_hash_find(&vn->hash, hash, host, len); - if (cscf) { - goto found; - } - } + cscf = ngx_hash_find_combined(vn, hash, host, len); - if (vn->dns_wildcards && vn->dns_wildcards->hash.buckets) { - cscf = ngx_hash_find_wildcard(vn->dns_wildcards, host, len); - - if (cscf) { - goto found; - } + if (cscf) { + goto found; } cscf = ngx_http_get_module_srv_conf(r, ngx_http_core_module); |