Re: Automatic trailing slash redirect and scheme

2019-08-26 Thread Jean-Daniel FISCHER
Thanks for all the reply, I activate "absolute_redirect off". Le ven. 23 août 2019 à 00:07, Francis Daly 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 tra

Re: Automatic trailing slash redirect and scheme

2019-08-22 Thread Francis Daly
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

Re: Automatic trailing slash redirect and scheme

2019-08-22 Thread Igor A. Ippolitov
Hello, You can try adding an 'error_page 301 @returnme' and then a location like this: location @returnme {     return 301 https://$host$uri/$is_args$args; } Regards, Igor On 22.08.2019 16:22, Jean-Daniel FISCHER wrote: Hi, I an trying to set the sheme used in automatic redirect generates b

Automatic trailing slash redirect and scheme

2019-08-22 Thread Jean-Daniel FISCHER
Hi, 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