comparison src/http/ngx_http.c @ 168:3314be145cb9 NGINX_0_3_31

nginx 0.3.31 *) Change: now nginx passes the malformed proxied backend responses. *) Feature: the "listen" directives support the address in the "*:port" form. *) Feature: the EVFILER_TIMER support in MacOSX 10.4. *) Workaround: for MacOSX 64-bit kernel kqueue millisecond timeout bug. Thanks to Andrei Nigmatulin. *) Bugfix: if there were several "listen" directives listening one various addresses inside one server, then server names like "*.domain.tld" worked for first address only; bug appeared in 0.3.18. *) Bugfix: if the HTTPS protocol was used in the "proxy_pass" directive and the request body was in temporarily file then the request was not transferred. *) Bugfix: perl 5.8.8 compatibility.
author Igor Sysoev <http://sysoev.ru>
date Fri, 10 Mar 2006 00:00:00 +0300
parents 6be073125f2e
children 4ad13ee5ef5e
comparison
equal deleted inserted replaced
167:544cb5cba207 168:3314be145cb9
561 561
562 continue; 562 continue;
563 563
564 virtual_names: 564 virtual_names:
565 565
566 ngx_memzero(&ha, sizeof(ngx_hash_keys_arrays_t));
567
566 ha.temp_pool = ngx_create_pool(16384, cf->log); 568 ha.temp_pool = ngx_create_pool(16384, cf->log);
567 if (ha.temp_pool == NULL) { 569 if (ha.temp_pool == NULL) {
568 return NGX_CONF_ERROR; 570 return NGX_CONF_ERROR;
569 } 571 }
570 572
575 return NGX_CONF_ERROR; 577 return NGX_CONF_ERROR;
576 } 578 }
577 579
578 name = in_addr[a].names.elts; 580 name = in_addr[a].names.elts;
579 for (s = 0; s < in_addr[a].names.nelts; s++) { 581 for (s = 0; s < in_addr[a].names.nelts; s++) {
582
583 ngx_log_error(NGX_LOG_ALERT, cf->log, 0,
584 "server name \"%V\"", &name[s].name);
580 585
581 ch = name[s].name.data[0]; 586 ch = name[s].name.data[0];
582 587
583 if (ch == '*' || ch == '.') { 588 if (ch == '*' || ch == '.') {
584 continue; 589 continue;
597 &name[s].name); 602 &name[s].name);
598 } 603 }
599 } 604 }
600 605
601 for (s = 0; s < in_addr[a].names.nelts; s++) { 606 for (s = 0; s < in_addr[a].names.nelts; s++) {
607
608 ngx_log_error(NGX_LOG_ALERT, cf->log, 0,
609 "wildcard server name \"%V\"", &name[s].name);
602 610
603 ch = name[s].name.data[0]; 611 ch = name[s].name.data[0];
604 612
605 if (ch != '*' && ch != '.') { 613 if (ch != '*' && ch != '.') {
606 continue; 614 continue;