Skip to content

Instantly share code, notes, and snippets.

@AlexNodex
Created June 27, 2016 07:08
Show Gist options
  • Save AlexNodex/f7386b30a80d72b426498915e33d1e5f to your computer and use it in GitHub Desktop.
Save AlexNodex/f7386b30a80d72b426498915e33d1e5f to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name .yourdomain.com;
return 301 https://yourdomain.com$request_uri;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment