Created
October 13, 2008 21:37
-
-
Save mislav/16610 to your computer and use it in GitHub Desktop.
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
# nginx: redirect secondary domain names to primary | |
server { | |
listen 80; | |
server_name mislav.caboo.se mislavmarohnic.com mislavmarohnic.name mislav.name mislav.info mislav.biz; | |
# ... | |
if ($host != "mislav.caboo.se") { | |
rewrite .* http://mislav.caboo.se$uri permanent; | |
} | |
# ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment