comparison src/http/ngx_http.c @ 439:dac47e9ef0d5 NGINX_0_7_27

nginx 0.7.27 *) Feature: the "try_files" directive. *) Feature: variables support in the "fastcgi_pass" directive. *) Feature: now the $geo variable may get an address from a variable. Thanks to Andrei Nigmatulin. *) Feature: now a location's modifier may be used without space before name. *) Feature: the $upstream_response_length variable. *) Bugfix: now a "add_header" directive does not add an empty value. *) Bugfix: if zero length static file was requested, then nginx just closed connection; the bug had appeared in 0.7.25. *) Bugfix: a MOVE method could not move file in non-existent directory. *) Bugfix: a segmentation fault occurred in worker process, if no one named location was defined in server, but some one was used in an error_page directive. Thanks to Sergey Bochenkov.
author Igor Sysoev <http://sysoev.ru>
date Mon, 15 Dec 2008 00:00:00 +0300
parents 79c5df00501e
children 76a79816b771
comparison
equal deleted inserted replaced
438:3b8e9d1bc9bb 439:dac47e9ef0d5
487 cmcf->phase_engine.location_rewrite_index = (ngx_uint_t) -1; 487 cmcf->phase_engine.location_rewrite_index = (ngx_uint_t) -1;
488 find_config_index = 0; 488 find_config_index = 0;
489 use_rewrite = cmcf->phases[NGX_HTTP_REWRITE_PHASE].handlers.nelts ? 1 : 0; 489 use_rewrite = cmcf->phases[NGX_HTTP_REWRITE_PHASE].handlers.nelts ? 1 : 0;
490 use_access = cmcf->phases[NGX_HTTP_ACCESS_PHASE].handlers.nelts ? 1 : 0; 490 use_access = cmcf->phases[NGX_HTTP_ACCESS_PHASE].handlers.nelts ? 1 : 0;
491 491
492 n = use_rewrite + use_access + 1; /* find config phase */ 492 n = use_rewrite + use_access + cmcf->try_files + 1 /* find config phase */;
493 493
494 for (i = 0; i < NGX_HTTP_LOG_PHASE; i++) { 494 for (i = 0; i < NGX_HTTP_LOG_PHASE; i++) {
495 n += cmcf->phases[i].handlers.nelts; 495 n += cmcf->phases[i].handlers.nelts;
496 } 496 }
497 497
551 551
552 case NGX_HTTP_POST_ACCESS_PHASE: 552 case NGX_HTTP_POST_ACCESS_PHASE:
553 if (use_access) { 553 if (use_access) {
554 ph->checker = ngx_http_core_post_access_phase; 554 ph->checker = ngx_http_core_post_access_phase;
555 ph->next = n; 555 ph->next = n;
556 ph++;
557 }
558
559 continue;
560
561 case NGX_HTTP_TRY_FILES_PHASE:
562 if (cmcf->try_files) {
563 ph->checker = ngx_http_core_try_files_phase;
564 n++;
556 ph++; 565 ph++;
557 } 566 }
558 567
559 continue; 568 continue;
560 569