proxy_pass with variable removes uri

Maxim Dounin mdounin at
Wed Mar 5 13:42:01 UTC 2014


On Wed, Mar 05, 2014 at 07:46:38AM -0500, luckyswede wrote:

> Cool, that works!
> I don't understand why though, why is the uri urldecoded in my example but
> not in your example?

In your config, URI is defined using variables, and your are 
responsible for proper urlencoding.  Config suggested by me uses 
proxy_pass without URI component (which uses request URI, even with 
variables), and a rewrite to change request URI - hence nginx does 
appropriate urlencoding.

Maxim Dounin

More information about the nginx mailing list