Thanks for all the reply, I activate "absolute_redirect off".
Le ven. 23 août 2019 à 00:07, Francis Daly <francis@daoine.org> a écrit :
> On Thu, Aug 22, 2019 at 03:22:38PM +0200, Jean-Daniel FISCHER wrote:
>
> Hi there,
>
> > I an trying to set the sheme used in automatic redirect generates by
> nginx
> > when trailing slash is missing. The nginx server is behind a proxy that
> > handles ssl, hence all requests are made using http so nginx use http in
> > absolute redirect.
> >
> > Is there a way to configure nginx to use the value of
> > "$http_x_forwarded_proto" ?
>
> I think "not directly".
>
> So, if the ssl-handling proxy does not have the equivalent of
> proxy_redirect (http://nginx.org/r/proxy_redirect) to modify the Location:
> header before it goes to the client; then you could use "absolute_redirect
> off" (http://nginx.org/r/absolute_redirect) so that nginx will omit the
> scheme and host and port from the Location: header, which all current
> clients should Just Work with.
>
> f
> --
> Francis Daly francis@daoine.org
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
--
https://cedreo.com/ *Jean-Daniel Fischer*
Developer
+33 (0)2 40 18 04 77
16 Bd Charles de Gaulle, Bât. B
44800 Saint-Herblain, France
[image: LinkedIn] https://linkedin.com/company/cedreo/ [image: Facebook]
https://facebook.com/cedreo3d/ [image: YouTube]
https://youtube.com/channel/UCj1QYnZvV8Wbtdivc4GD7CA [image: Instagram]
https://instagram.com/cedreo3D/
*Cedreo est noté* [image: Trustpilot Stars]
https://fr.trustpilot.com/review/www.cedreo.com?utm_medium=Trustbox&utm_source=EmailSignature1
sur [image: Trustpilot Logo]
https://fr.trustpilot.com/review/www.cedreo.com?utm_medium=Trustbox&utm_source=EmailSignature1
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx