comparison src/http/ngx_http_core_module.c @ 2043:1d86674d1286

after URI was rewritten location configuration should be to a server's null one
author Igor Sysoev <igor@sysoev.ru>
date Sun, 15 Jun 2008 19:07:35 +0000
parents c036922f6f07
children 2a92804f4109
comparison
equal deleted inserted replaced
2042:6389d4accacf 2043:1d86674d1286
858 858
859 ngx_int_t 859 ngx_int_t
860 ngx_http_core_post_rewrite_phase(ngx_http_request_t *r, 860 ngx_http_core_post_rewrite_phase(ngx_http_request_t *r,
861 ngx_http_phase_handler_t *ph) 861 ngx_http_phase_handler_t *ph)
862 { 862 {
863 ngx_http_core_srv_conf_t *cscf;
864
863 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, 865 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
864 "post rewrite phase: %ui", r->phase_handler); 866 "post rewrite phase: %ui", r->phase_handler);
865 867
866 if (!r->uri_changed) { 868 if (!r->uri_changed) {
867 r->phase_handler++; 869 r->phase_handler++;
888 ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR); 890 ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR);
889 return NGX_OK; 891 return NGX_OK;
890 } 892 }
891 893
892 r->phase_handler = ph->next; 894 r->phase_handler = ph->next;
895
896 cscf = ngx_http_get_module_srv_conf(r, ngx_http_core_module);
897 r->loc_conf = cscf->ctx->loc_conf;
893 898
894 return NGX_AGAIN; 899 return NGX_AGAIN;
895 } 900 }
896 901
897 902