Skip to content

Instantly share code, notes, and snippets.

@bingluen
Created October 8, 2016 05:25
Show Gist options
  • Save bingluen/caf0fc2714fee3095c91395b7db477ad to your computer and use it in GitHub Desktop.
Save bingluen/caf0fc2714fee3095c91395b7db477ad to your computer and use it in GitHub Desktop.
Nginx to ssl setting
server {
listen 80;
listen [::]:80;
server_name domainName1 domainName2;
return 301 https://$host$request_uri;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment