Created
March 21, 2017 09:44
-
-
Save imliam/9d57038df1e37ecd2c1d8e2e559a102d to your computer and use it in GitHub Desktop.
Nginx - Redirect www to non-www
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 { | |
server_name www.yourdomain.com; | |
return 301 $scheme://yourdomain.com$request_uri; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment