Welcome! Log In Create A New Profile

Advanced

Condition in location for proxy_pass

trm asn
October 16, 2012 12:56PM
Dear List ,

I need to do a conditional proxy_pass , but it's not happening as expected
..

like

set $target
http://www.example.com/sso/url.ping?TargetUrl=http://www.example.com/home

And that $target , I would like to check with $request_uri in below segment
..

location /sso/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
----------

----------
proxy_pass http://10.20.137.21;
}
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Condition in location for proxy_pass

trm asn October 16, 2012 12:56PM

Re: Condition in location for proxy_pass

trm asn October 16, 2012 01:02PM



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