diff options
author | Igor Sysoev <igor@sysoev.ru> | 2008-06-15 23:07:35 +0400 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2008-06-15 23:07:35 +0400 |
commit | b0780752b00dea6aca3bc4f6d19d69e0382b2ad3 (patch) | |
tree | 96af5e82cbb47ec52280fa5cb5e04eedb4e0890d /src | |
parent | a3a792b1ee8355dfca1427ebac95f8a18bbd54fe (diff) |
after URI was rewritten location configuration should be to a server's null one
Diffstat (limited to 'src')
-rw-r--r-- | src/http/ngx_http_core_module.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index 76d40ea0f..c35936399 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -860,6 +860,8 @@ ngx_int_t ngx_http_core_post_rewrite_phase(ngx_http_request_t *r, ngx_http_phase_handler_t *ph) { + ngx_http_core_srv_conf_t *cscf; + ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, "post rewrite phase: %ui", r->phase_handler); @@ -891,6 +893,9 @@ ngx_http_core_post_rewrite_phase(ngx_http_request_t *r, r->phase_handler = ph->next; + cscf = ngx_http_get_module_srv_conf(r, ngx_http_core_module); + r->loc_conf = cscf->ctx->loc_conf; + return NGX_AGAIN; } |