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
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
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
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