mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
after URI was rewritten location configuration should be to a server's null one
This commit is contained in:
parent
a3a792b1ee
commit
b0780752b0
@ -860,6 +860,8 @@ ngx_int_t
|
|||||||
ngx_http_core_post_rewrite_phase(ngx_http_request_t *r,
|
ngx_http_core_post_rewrite_phase(ngx_http_request_t *r,
|
||||||
ngx_http_phase_handler_t *ph)
|
ngx_http_phase_handler_t *ph)
|
||||||
{
|
{
|
||||||
|
ngx_http_core_srv_conf_t *cscf;
|
||||||
|
|
||||||
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
|
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
|
||||||
"post rewrite phase: %ui", r->phase_handler);
|
"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;
|
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;
|
return NGX_AGAIN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user