<div dir="ltr"><div dir="ltr">Thanks for all the reply, I activate
"absolute_redirect off". </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le ven. 23 août 2019 à 00:07, Francis Daly <<a href="mailto:francis@daoine.org">francis@daoine.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Thu, Aug 22, 2019 at 03:22:38PM +0200, Jean-Daniel FISCHER wrote:<br>
<br>
Hi there,<br>
<br>
> I an trying to set the sheme used in automatic redirect generates by nginx<br>
> when trailing slash is missing. The nginx server is behind a proxy that<br>
> handles ssl, hence all requests are made using http so nginx use http in<br>
> absolute redirect.<br>
> <br>
> Is there a way to configure nginx to use the value of<br>
> "$http_x_forwarded_proto" ?<br>
<br>
I think "not directly".<br>
<br>
So, if the ssl-handling proxy does not have the equivalent of<br>
proxy_redirect (<a href="http://nginx.org/r/proxy_redirect" rel="noreferrer" target="_blank">http://nginx.org/r/proxy_redirect</a>) to modify the Location:<br>
header before it goes to the client; then you could use "absolute_redirect<br>
off" (<a href="http://nginx.org/r/absolute_redirect" rel="noreferrer" target="_blank">http://nginx.org/r/absolute_redirect</a>) so that nginx will omit the<br>
scheme and host and port from the Location: header, which all current<br>
clients should Just Work with.<br>
<br>
f<br>
-- <br>
Francis Daly <a href="mailto:francis@daoine.org" target="_blank">francis@daoine.org</a><br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><br></div><div dir="ltr"><div style="font-family:Arial,Helvetica,sans-serif;font-size:small;letter-spacing:normal"><table width="450" cellspacing="0" cellpadding="0" border="0" style="font-family:"Times New Roman""><tbody><tr><td width="90" style="vertical-align:top;padding-right:12px"><a href="https://cedreo.com/" style="color:rgb(17,85,204);display:inline-block" target="_blank"><img width="90" src="https://cedreo.com/wp-content/uploads/2018/07/LogoCEDREO.png" style="border: none;"></a></td><td width="13" style="border-left:1px solid rgb(0,0,0)"></td><td style="font-family:helvetica,arial;vertical-align:top;color:rgb(105,105,105);font-size:12px"><b><span style="color:rgb(45,168,164);font-size:15px">Jean-Daniel Fischer</span></b><br>Developer <br><br><span style="font-stretch:normal;line-height:normal"><a style="color:rgb(45,168,164)">+33 (0)2 40 18 04 77</a></span><br>16 Bd Charles de Gaulle, Bât. B<br>44800 Saint-Herblain, France <br><br><table cellpadding="0" border="0"><tbody><tr><td style="padding-right:4px"><a href="https://linkedin.com/company/cedreo/" style="color:rgb(17,85,204);display:inline-block" target="_blank"><img width="25" height="25" src="https://s1g.s3.amazonaws.com/69454e25970e1fd324cd23011926cfb5.png" alt="LinkedIn" style="border: none;"></a></td><td style="padding-right:4px"><a href="https://facebook.com/cedreo3d/" style="color:rgb(17,85,204);display:inline-block" target="_blank"><img width="25" height="25" src="https://s1g.s3.amazonaws.com/968211336f9755df82bee306c2810750.png" alt="Facebook" style="border: none;"></a></td><td style="padding-right:4px"><a href="https://youtube.com/channel/UCj1QYnZvV8Wbtdivc4GD7CA" style="color:rgb(17,85,204);display:inline-block" target="_blank"><img width="25" height="25" src="https://s1g.s3.amazonaws.com/d064ad6a31fedb1a72cc841da0e2fc82.png" alt="YouTube" style="border: none;"></a></td><td style="padding-right:4px"><a href="https://instagram.com/cedreo3D/" style="color:rgb(17,85,204);display:inline-block" target="_blank"><img width="25" height="25" src="https://s1g.s3.amazonaws.com/1197a031ffec48bd092facb4d3442f9a.png" alt="Instagram" style="border: none;"></a></td></tr></tbody></table></td></tr></tbody></table><p style="font-family:Arial,"Arial Black",Tahoma,"Trebuchet MS",Verdana,sans-serif;font-size:12px"><font color="#444444" style="letter-spacing:0.2px"><span style="font-size:13px"><span style="font-size:12px"><b><br>Cedreo est noté</b></span></span> </font><span style="letter-spacing:0.2px;color:rgb(170,170,170)"> <a href="https://fr.trustpilot.com/review/www.cedreo.com?utm_medium=Trustbox&utm_source=EmailSignature1" style="color:rgb(17,85,204)" target="_blank"><img src="https://emailsignature.trustpilot.com/signature/fr-FR/1/5b0e92e197ae1c0001e39939/stars.png" border="0" width="128" alt="Trustpilot Stars" style="border: none; max-width: 128px; height: auto; display: inline-block; vertical-align: middle; width: 128px;"></a> </span><font color="#444444" style="letter-spacing:0.2px">sur </font><font color="#aaaaaa" style="letter-spacing:0.2px"><a href="https://fr.trustpilot.com/review/www.cedreo.com?utm_medium=Trustbox&utm_source=EmailSignature1" style="color:rgb(17,85,204)" target="_blank"><span style="border-width:initial;border-color:initial;height:auto"><img src="https://emailsignature.trustpilot.com/brand/s/1/logo.png" border="0" width="82" alt="Trustpilot Logo" style="border: none; max-width: 82px; height: auto; display: inline-block; vertical-align: middle; width: 82px;"></span> </a></font></p></div></div></div></div></div></div></div></div></div></div>