Skip to content

Instantly share code, notes, and snippets.

@mislav
Created October 13, 2008 21:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mislav/16610 to your computer and use it in GitHub Desktop.
Save mislav/16610 to your computer and use it in GitHub Desktop.
# 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