Nginx 配置 http 跳转 https

server {
  listen      80;
  server_name    my.domain.com;
  return      301 https://$server_name$request_uri;
}

server {
  listen      443 ssl;
  server_name    my.domain.com;

  [....]
}
Nginx 配置 http 跳转 https
Share this