Welcome! Log In Create A New Profile

Advanced

Re: Nginx add location details to URL when we stop decoding URL

February 14, 2015 01:22AM
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
Subject Author Posted

Nginx add location details to URL when we stop decoding URL

malintha February 13, 2015 01:07AM

Re: Nginx add location details to URL when we stop decoding URL

Maxim Dounin February 13, 2015 08:00AM

Re: Nginx add location details to URL when we stop decoding URL

malintha February 14, 2015 01:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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