Igor,

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

Thank you very much!

  ~Wayne

s///g
Wayne E. Seguin
Sr. Systems Architect & Systems Administrator