proxy_pass with variable removes uri

luckyswede nginx-forum at nginx.us
Wed Mar 5 12:23:23 UTC 2014


Hi,
I've had troubles with url-decoding using this kind configuration, e.g. get
variables with values containing spaces have been decoded before proxied
which is resulting in an error. 
For example I've tried:
location ~ ^/api/(.*) {
    proxy_pass http://api.$host/$1$is_args$args;
}
but that gives an error if the uri is urlencoded.

Any ideas?


BR / Jonas

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,248124,248129#msg-248129



More information about the nginx mailing list