Nginx as proxy: automatically decoding URL-encoded URLs?

Igor Sysoev is at
Wed Jan 28 22:59:05 MSK 2009

On Wed, Jan 28, 2009 at 07:56:01PM +0000, Jason Davies wrote:

> Just been playing with using nginx as a proxy and it seems to be  
> automatically decoding URLs that contain URL-encoded chars (e.g. /foo/ 
> bar%2Fbaz -> /foo/bar/baz) - is there any way to turn this off?

     location / {
         proxy_pass http://backend;


-        proxy_pass http://backend/;
+        proxy_pass http://backend;

Igor Sysoev

More information about the nginx mailing list