Created
March 23, 2013 20:21
-
-
Save vladimir-e/5229210 to your computer and use it in GitHub Desktop.
Nginx 301 redirect from www domain
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.domain.com; | |
return 301 $scheme://domain.com$request_uri; | |
} | |
server{ | |
server_name domain.com; | |
[...] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment