Nginx add location details to URL when we stop decoding URL

malintha nginx-forum at
Sat Feb 14 06:22:40 UTC 2015

hi Maxim ,

Your answer is right and thank you for it. I applied it with small

set $modified_uri $request_uri;

if ($modified_uri ~ "^/gateway(/.*)") {
set $modified_uri $1;

proxy_pass http://upstream$1;

Thank you,

Posted at Nginx Forum:,256639,256669#msg-256669

More information about the nginx mailing list