Forcing SSL (https)

Wayne E. Seguin wayneeseguin at
Wed Aug 29 19:03:37 MSD 2007


This does not preserve the subdomain:

server {
   listen 80;
   server_name mydomain.tld;
   rewrite  ^(.*)  https://mydomain.tld$1  redirect;

What is the best way to redirect http => https while preserving  

Thank you very much!


Wayne E. Seguin
Sr. Systems Architect & Systems Administrator

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list