domain rewrite/redirect
Cedric Jeanneret
cedric.jeanneret at camptocamp.com
Tue May 3 11:44:48 MSD 2011
On Mon, 02 May 2011 19:55:11 -0400
"chiefops" <nginx-forum at 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 at 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 at camptocamp.com | PSE-A / EPFL
www.camptocamp.com | www.github.com/camptocamp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://nginx.org/pipermail/nginx/attachments/20110503/db2bbc86/attachment.pgp>
More information about the nginx
mailing list