Created
June 29, 2017 23:31
-
-
Save caseydriscoll/61c11614e75132d4005280d513e7c287 to your computer and use it in GitHub Desktop.
Example of catch-all 301 nginx redirect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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