Skip to content

Instantly share code, notes, and snippets.

@caseydriscoll
Created June 29, 2017 23:31
Show Gist options
  • Save caseydriscoll/61c11614e75132d4005280d513e7c287 to your computer and use it in GitHub Desktop.
Save caseydriscoll/61c11614e75132d4005280d513e7c287 to your computer and use it in GitHub Desktop.
Example of catch-all 301 nginx redirect
server {
listen 80;
server_name caseydris.co www.caseydris.co;
return 301 https://$host$request_uri;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment