# HG changeset patch # User Igor Sysoev # Date 1218995048 0 # Node ID 4a5bfd728a121a5b81b16c97cfa5aaae9c5c4370 # Parent 23309bcd9937a8a77c4da69ccba1013fed88ce6e disable original URI usage in proxy_pass after X-Accel-Redirect diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -1300,6 +1300,8 @@ ngx_http_upstream_process_header(ngx_eve r->method = NGX_HTTP_GET; } + r->valid_unparsed_uri = 0; + ngx_http_internal_redirect(r, uri, &args); return; }