diff src/http/ngx_http_request.c @ 1617:cacb565c554e stable-0.5

r1254, r1416, r1493 merge: the "www.example.*" wildcard hash support
author Igor Sysoev <igor@sysoev.ru>
date Wed, 07 Nov 2007 13:39:53 +0000
parents d5db0e96bcc6
children fbf94b8341bf
line wrap: on
line diff
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -1463,19 +1463,10 @@ ngx_http_find_virtual_server(ngx_http_re
 
     vn = r->virtual_names;
 
-    if (vn->hash.buckets) {
-        cscf = ngx_hash_find(&vn->hash, hash, host, len);
-        if (cscf) {
-            goto found;
-        }
-    }
-
-    if (vn->dns_wildcards && vn->dns_wildcards->hash.buckets) {
-        cscf = ngx_hash_find_wildcard(vn->dns_wildcards, host, len);
-
-        if (cscf) {
-            goto found;
-        }
+    cscf = ngx_hash_find_combined(vn, hash, host, len);
+
+    if (cscf) {
+        goto found;
     }
 
     cscf = ngx_http_get_module_srv_conf(r, ngx_http_core_module);