comparison src/http/ngx_http.c @ 613:c73c5c58c619 release-0.3.28

nginx-0.3.28-RELEASE import *) Feature: the "restrict_host_names" directive was canceled. *) Feature: the --with-cpu-opt=ppc64 configuration parameter. *) Bugfix: on some condition the proxied connection with a client was terminated prematurely. Thanks to Vladimir Shutoff. *) Bugfix: the "X-Accel-Limit-Rate" header line was not taken into account if the request was redirected using the "X-Accel-Redirect" header line. *) Bugfix: the "post_action" directive ran only after a successful completion of a request. *) Bugfix: the proxied response body generated by the "post_action" directive was transferred to a client.
author Igor Sysoev <igor@sysoev.ru>
date Thu, 16 Feb 2006 15:26:46 +0000
parents 608cf78b24ef
children 7a16e281c01f
comparison
equal deleted inserted replaced
612:182bfe05e2c3 613:c73c5c58c619
532 sizeof(ngx_http_conf_in_addr_t), ngx_http_cmp_conf_in_addrs); 532 sizeof(ngx_http_conf_in_addr_t), ngx_http_cmp_conf_in_addrs);
533 533
534 /* 534 /*
535 * check whether all name-based servers have the same configuraiton 535 * check whether all name-based servers have the same configuraiton
536 * as the default server, 536 * as the default server,
537 * or some servers restrict the host names,
538 * or some servers disable optimizing the server names 537 * or some servers disable optimizing the server names
539 */ 538 */
540 539
541 in_addr = in_port[p].addrs.elts; 540 in_addr = in_port[p].addrs.elts;
542 for (a = 0; a < in_port[p].addrs.nelts; a++) { 541 for (a = 0; a < in_port[p].addrs.nelts; a++) {
543 542
544 name = in_addr[a].names.elts; 543 name = in_addr[a].names.elts;
545 for (s = 0; s < in_addr[a].names.nelts; s++) { 544 for (s = 0; s < in_addr[a].names.nelts; s++) {
546 545
547 if (in_addr[a].core_srv_conf != name[s].core_srv_conf 546 if (in_addr[a].core_srv_conf != name[s].core_srv_conf
548 || name[s].core_srv_conf->optimize_server_names == 0 547 || name[s].core_srv_conf->optimize_server_names == 0)
549 || name[s].core_srv_conf->restrict_host_names
550 != NGX_HTTP_RESTRICT_HOST_OFF)
551 { 548 {
552 goto virtual_names; 549 goto virtual_names;
553 } 550 }
554 } 551 }
555 552
556 /* 553 /*
557 * if all name-based servers have the same configuration 554 * if all name-based servers have the same configuration
558 * as the default server, 555 * as the default server,
559 * and no servers restrict the host names,
560 * and no servers disable optimizing the server names 556 * and no servers disable optimizing the server names
561 * then we do not need to check them at run-time at all 557 * then we do not need to check them at run-time at all
562 */ 558 */
563 559
564 in_addr[a].names.nelts = 0; 560 in_addr[a].names.nelts = 0;