Mercurial > hg > nginx-quic
comparison src/http/ngx_http.c @ 1353:7443fbe0b013
named location
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 29 Jul 2007 18:11:39 +0000 |
parents | 8ef04207c84f |
children | 4612daca9dc1 |
comparison
equal
deleted
inserted
replaced
1352:e958b3cab51a | 1353:7443fbe0b013 |
---|---|
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; |