hi Maxim ,
Your answer is right and thank you for it. I applied it with small
correction.
set $modified_uri $request_uri;
if ($modified_uri ~ "^/gateway(/.*)") {
set $modified_uri $1;
}
proxy_pass http://upstream$1;
Thank you,
Malintha
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2
Hello!
On Fri, Feb 13, 2015 at 01:07:15AM -0500, malintha wrote:
> I am accessing a URL which has encode characters
>
> http:../malintha/tel%3A%2B6281808147137
>
>
>
>location /gateway/ {
> proxy_set_header X-Forwarded-Host $host;
> proxy_set_header X-Forwarded-Server $host;
>
I am accessing a URL which has encode characters
http:../malintha/tel%3A%2B6281808147137
location /gateway/ {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header