Created
May 14, 2014 17:44
-
-
Save gnurag/712ae7c8ce5344443c52 to your computer and use it in GitHub Desktop.
redirect www to naked domain in nginx
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 www.xinh.org; | |
rewrite ^ $scheme://xinh.org$request_uri? permanent; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment