Condition in location for proxy_pass

trm asn trm.nagios at
Tue Oct 16 16:55:37 UTC 2012

Dear List ,

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


set $target

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;

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list