Welcome! Log In Create A New Profile

Advanced

Re: proxy pass encoding % problem

Maxim Dounin
May 07, 2013 08:26AM
Hello!

On Tue, May 07, 2013 at 06:48:11AM -0400, Krupa wrote:

> There are no rewrite policies.
> location /gw_proxy {
> #internal;
> #resolver 8.8.8.8;
> proxy_http_version 1.1;
> proxy_pass http://50.112.76.185:9001;
> proxy_pass_request_body off;
> proxy_set_header Content-Length 0;
> }
>
> invoke nginx with this url :
> http://54.245.39.250:8081/gw_proxy/test%2btest/
> uri sent by nginx : /gw_proxy/test%252btest/

Works fine here. Quote from debug log:

....
2013/05/07 16:12:53 [debug] 36830#0: *1 http request line: "GET /gw_proxy/test%2btest/ HTTP/1.1"
....
2013/05/07 16:12:53 [debug] 36830#0: *1 test location: "/gw_proxy"
2013/05/07 16:12:53 [debug] 36830#0: *1 using configuration "/gw_proxy"
....
2013/05/07 16:12:53 [debug] 36830#0: *1 http proxy header:
"GET /gw_proxy/test%2btest/ HTTP/1.1
Content-Length: 0
....

That is, request line sent to a backend is identical to one got
from a client.

You may want to check if you have problems on client and/or
backend instead. In any case, looking into nginx debug log might
be helpful.

--
Maxim Dounin
http://nginx.org/en/donation.html

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

proxy pass encoding % problem

Krupa May 07, 2013 05:45AM

Re: proxy pass encoding % problem

Maxim Dounin May 07, 2013 06:38AM

Re: proxy pass encoding % problem

Krupa May 07, 2013 06:48AM

Re: proxy pass encoding % problem

Maxim Dounin May 07, 2013 08:26AM

Re: proxy pass encoding % problem

jradd May 07, 2013 10:35PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 296
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready