<div dir="ltr"><div>Hello, my upstream server replies with this:</div><div><br></div><div><div>HTTP/1.1 200 OK.</div><div>Server: test.</div><div>Date: Sat, 28 Nov 2015 00:05:55 GMT.</div><div>Content-Type: application/json.</div><div>Content-Length: 0.</div><div>Connection: close.</div><div>X-ExtraInfo: domain_name=<a href="http://test1.com">test1.com</a>;domain_id=1000;user_name=user1;user_id=10001001.</div><div>X-Accel-Redirect: /internal_redirect/<a href="http://192.168.2.153:7777">192.168.2.153:7777</a>.</div><div>Access-Control-Allow-Origin: <a href="https://192.168.2.153:445">https://192.168.2.153:445</a>.</div><div>Access-Control-Allow-Credentials: true.</div><div><br></div><div>which I handle with this:</div><div><br></div><div>location ~ ^/internal_redirect/(.*) {</div><div>    internal;</div><div>    proxy_pass http://$1$is_args$args;</div><div>}</div><div><br></div><div>However, I want to pass X-ExtraInfo to the target upstream server so i tried:</div><div>  proxy_set_header               X-ExtraInfo                     $sent_http_x_extrainfo;<br></div><div>and even:<br></div><div>  proxy_set_header               X-ExtraInfo                     $http_x_extrainfo;<br></div><div>but none of them worked.<br></div><div>So, is there a way to get headers from X-Accel-Redirect replies?</div></div><div><br></div><div>Obs: I can workaround this passing the ExtraInfo as arguments in the target URL but I want try to rely on the current interface of the target upstream server.</div><div><br></div><div>Regards,</div><div>Takeshi</div><div><br></div></div>