Skip to content

Instantly share code, notes, and snippets.

@RAnders00
Created December 31, 2018 12:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RAnders00/39c00ac2ba8251d5eaf9cd927123a084 to your computer and use it in GitHub Desktop.
Save RAnders00/39c00ac2ba8251d5eaf9cd927123a084 to your computer and use it in GitHub Desktop.
# example.com and subdomains
server {
listen 80;
listen [::]:80;
server_name example.com *.example.com;
return 301 https://$host$request_uri;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment