after URI was rewritten location configuration should be to a server's null one
Igor Sysoev
14 years ago
859 | 859 | ngx_http_core_post_rewrite_phase(ngx_http_request_t *r, |
860 | 860 | ngx_http_phase_handler_t *ph) |
861 | 861 | { |
862 | ngx_http_core_srv_conf_t *cscf; | |
863 | ||
862 | 864 | ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, |
863 | 865 | "post rewrite phase: %ui", r->phase_handler); |
864 | 866 | |
889 | 891 | } |
890 | 892 | |
891 | 893 | r->phase_handler = ph->next; |
894 | ||
895 | cscf = ngx_http_get_module_srv_conf(r, ngx_http_core_module); | |
896 | r->loc_conf = cscf->ctx->loc_conf; | |
892 | 897 | |
893 | 898 | return NGX_AGAIN; |
894 | 899 | } |