Created
June 6, 2014 15:47
-
-
Save boutell/3be15e4b5c72597db273 to your computer and use it in GitHub Desktop.
nginx redirect example
This file contains hidden or 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 oldname; | |
location / { | |
rewrite ^(.*)$ http://newname$1; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment