Mercurial > hg > nginx-ranges
comparison src/http/ngx_http.c @ 324:f7cd062ee035 NGINX_0_6_6
nginx 0.6.6
*) Feature: the --sysconfdir=PATH option in configure.
*) Feature: named locations.
*) Feature: the $args variable can be set with the "set" directive.
*) Feature: the $is_args variable.
*) Bugfix: fair big weight upstream balancer.
*) Bugfix: if a client has closed connection to mail proxy then nginx
might not close connection to backend.
*) Bugfix: if the same host without specified port was used as backend
for HTTP and HTTPS, then nginx used only one port - 80 or 443.
*) Bugfix: fix building on Solaris/amd64 by Sun Studio 11 and early
versions; bug appeared in 0.6.4.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 30 Jul 2007 00:00:00 +0400 |
parents | 429900ca25ee |
children | 9fc4ab6673f9 |
comparison
equal
deleted
inserted
replaced
323:7e977a664d91 | 324:f7cd062ee035 |
---|---|
399 | 399 |
400 *cf = pcf; | 400 *cf = pcf; |
401 | 401 |
402 | 402 |
403 cmcf->phase_engine.server_rewrite_index = (ngx_uint_t) -1; | 403 cmcf->phase_engine.server_rewrite_index = (ngx_uint_t) -1; |
404 cmcf->phase_engine.location_rewrite_index = (ngx_uint_t) -1; | |
404 find_config_index = 0; | 405 find_config_index = 0; |
405 use_rewrite = cmcf->phases[NGX_HTTP_REWRITE_PHASE].handlers.nelts ? 1 : 0; | 406 use_rewrite = cmcf->phases[NGX_HTTP_REWRITE_PHASE].handlers.nelts ? 1 : 0; |
406 use_access = cmcf->phases[NGX_HTTP_ACCESS_PHASE].handlers.nelts ? 1 : 0; | 407 use_access = cmcf->phases[NGX_HTTP_ACCESS_PHASE].handlers.nelts ? 1 : 0; |
407 | 408 |
408 n = use_rewrite + use_access + 1; /* find config phase */ | 409 n = use_rewrite + use_access + 1; /* find config phase */ |
439 ph->checker = ngx_http_core_find_config_phase; | 440 ph->checker = ngx_http_core_find_config_phase; |
440 n++; | 441 n++; |
441 ph++; | 442 ph++; |
442 | 443 |
443 continue; | 444 continue; |
445 | |
446 case NGX_HTTP_REWRITE_PHASE: | |
447 if (cmcf->phase_engine.location_rewrite_index == (ngx_uint_t) -1) { | |
448 cmcf->phase_engine.location_rewrite_index = n; | |
449 } | |
450 checker = ngx_http_core_generic_phase; | |
451 | |
452 break; | |
444 | 453 |
445 case NGX_HTTP_POST_REWRITE_PHASE: | 454 case NGX_HTTP_POST_REWRITE_PHASE: |
446 if (use_rewrite) { | 455 if (use_rewrite) { |
447 ph->checker = ngx_http_core_post_rewrite_phase; | 456 ph->checker = ngx_http_core_post_rewrite_phase; |
448 ph->next = find_config_index; | 457 ph->next = find_config_index; |