Any way to disable urlencode on nginx with proxy_pass? Following is my
config and as suggested on google I already removed the “/” URI part of
of this “proxy_pass http://127.0.0.1:8090;”
Any idea how to proceed with this?
server {
### server port and name ###
listen 10.0.0.1:443 ssl;
server_name svn.server;
On Thu, May 09, 2013 at 05:37:26AM -0400, lupin wrote:
Hi there,
Any way to disable urlencode on nginx with proxy_pass? Following is my
config and as suggested on google I already removed the “/” URI part of
of this “proxy_pass http://127.0.0.1:8090;”
Why do you think that urlencode is or is not disabled?
Any way to disable urlencode on nginx with proxy_pass? Following is my
config and as suggested on google I already removed the “/” URI part of
of this “proxy_pass http://127.0.0.1:8090;”
Any idea how to proceed with this?
I think I might have ran into something similar before.
Internally Nginx has 2 ways to deal with this directive :
proxy_pass http://127.0.0.1:8090;
Either you’ve never touched the internal uri (no internal redirects for
instance) and your outgoing uri is going to be exactly the same as the
incoming uri. Internally r->valid_unparsed_uri is set to 1.
Or your internal has been modified, and the outgoing uri used by
proxy_pass
will be re-normalized.
The re-normalization process might turn up differences between incoming
and
outgoing uri.
Another way to force Nginx to send out exactly what you want is to do
something like this :
This way you’re forcing what comes in to be exactly what comes out, but
this comes with a price and you won’t be able to use internal
redirection
and will have to modify the content of $seed_uri manually, using if and
regexps for instance.
Hope that helps,
Matthieu.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.