Cedric Jeanneret
May 03, 2011 03:46AM
On Mon, 02 May 2011 19:55:11 -0400
"chiefops" <nginx-forum@nginx.us> wrote:

> Nevermind, got if fixed on my end. Simple, just had to reread the wiki:
>
> rewrite ^ https://abcd.com/referrals$request_uri? permanent;
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,195075,195093#msg-195093
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx

Hello,

You may also use HSTS headers to ensure your users use SSL instead of non-SSL. This won't replace the redirect, but the compatible browser will know on the next visit that it should use the SSL server only. It won't request the non-SSL part.

More about HSTS:
https://secure.wikimedia.org/wikipedia/en/wiki/HTTP_Strict_Transport_Security

Cheers,

C.

--
Cédric Jeanneret | System Administrator
021 619 10 32 | Camptocamp SA
cedric.jeanneret@camptocamp.com | PSE-A / EPFL
www.camptocamp.com | www.github.com/camptocamp
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

domain rewrite/redirect

chiefops May 02, 2011 06:35PM

Re: domain rewrite/redirect

chiefops May 02, 2011 07:05PM

Re: domain rewrite/redirect

chiefops May 02, 2011 07:55PM

Re: domain rewrite/redirect

Cedric Jeanneret May 03, 2011 03:46AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 266
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready