comparison src/http/ngx_http_request.c @ 312:429900ca25ee NGINX_0_6_0

nginx 0.6.0 *) Feature: the "server_name", "map", and "valid_referers" directives support the "www.example.*" wildcards.
author Igor Sysoev <http://sysoev.ru>
date Thu, 14 Jun 2007 00:00:00 +0400
parents 94e16de3c33f
children fc223117327f
comparison
equal deleted inserted replaced
311:fcb663e92663 312:429900ca25ee
1457 ngx_http_core_loc_conf_t *clcf; 1457 ngx_http_core_loc_conf_t *clcf;
1458 ngx_http_core_srv_conf_t *cscf; 1458 ngx_http_core_srv_conf_t *cscf;
1459 1459
1460 vn = r->virtual_names; 1460 vn = r->virtual_names;
1461 1461
1462 if (vn->hash.buckets) { 1462 cscf = ngx_hash_find_combined(vn, hash, host, len);
1463 cscf = ngx_hash_find(&vn->hash, hash, host, len); 1463
1464 if (cscf) { 1464 if (cscf) {
1465 goto found; 1465 goto found;
1466 }
1467 }
1468
1469 if (vn->dns_wildcards && vn->dns_wildcards->hash.buckets) {
1470 cscf = ngx_hash_find_wildcard(vn->dns_wildcards, host, len);
1471
1472 if (cscf) {
1473 goto found;
1474 }
1475 } 1466 }
1476 1467
1477 cscf = ngx_http_get_module_srv_conf(r, ngx_http_core_module); 1468 cscf = ngx_http_get_module_srv_conf(r, ngx_http_core_module);
1478 1469
1479 if (cscf->wildcard) { 1470 if (cscf->wildcard) {