Klaus Demo nginx / 7b5edd8
always run regex in server_name to get captures Igor Sysoev 13 years ago
1 changed file(s) with 11 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
13941394 name = addr[a].names.elts;
13951395 for (s = 0; s < addr[a].names.nelts; s++) {
13961396
1397 if (addr[a].core_srv_conf == name[s].core_srv_conf) {
1397 if (addr[a].core_srv_conf == name[s].core_srv_conf
1398 #if (NGX_PCRE)
1399 && name[s].captures == 0
1400 #endif
1401 )
1402 {
13981403 continue;
13991404 }
14001405
18051810 && (addr[i].wc_head == NULL
18061811 || addr[i].wc_head->hash.buckets == NULL)
18071812 && (addr[i].wc_tail == NULL
1808 || addr[i].wc_tail->hash.buckets == NULL))
1813 || addr[i].wc_tail->hash.buckets == NULL)
1814 #if (NGX_PCRE)
1815 && addr[i].nregex == 0
1816 #endif
1817 )
18091818 {
18101819 continue;
18111820 }