Welcome! Log In Create A New Profile

Advanced

Reverse proxy, proxy_pass

Amir Kaivani
January 06, 2016 06:54PM
Hi there,

Here is a part of my nginx config file:

location /test/ {
proxy_pass http://localhost:1024/;
}

If I have it as above the GET /test/xxxx request will be sent to port 1024
as /xxxx and it also decodes the URI.

I know that if I remove / from the end of proxy_pass then it'll send the
URI without decoding special characters (such as %2F). But in this case it
sends /test/xxxx to port 1024.

So, my question is how I can get nginx to remove /test/ from the URI but
does NOT decode special characters (such as %2F)?

Thank you for your help.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Reverse proxy, proxy_pass

Amir Kaivani January 06, 2016 06:54PM

Re: Reverse proxy, proxy_pass

Maxim Dounin January 08, 2016 01:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 293
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