Welcome! Log In Create A New Profile

Advanced

Re: A question about "proxy_redirect"

July 19, 2011 01:48AM
I find that if I uses proxy_pass to an upstream, the FULL URL match will fail:

upstream upservers {
server 10.1.2.3:1234;
}

location / {
proxy_pass http://upservers;
proxy_redirect http://upservers/ http://$host:$server_port;
}

However, if I directly proxy_pass to the backend, it works:
location / {
proxy_pass http://10.1.2.3:1234;
proxy_redirect http://10.1.2.3:1234 http://$host:$server_port;
}

Did I make some mistakes in the upstream config?
Subject Author Posted

A question about "proxy_redirect"

speedfirst July 19, 2011 01:35AM

Re: A question about "proxy_redirect"

speedfirst July 19, 2011 01:48AM

Re: A question about "proxy_redirect"

Igor Sysoev July 19, 2011 02:12AM

Re: A question about "proxy_redirect"

Igor Sysoev July 19, 2011 02:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 93
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready