Skip to content

Instantly share code, notes, and snippets.

@jdelStrother
Created October 21, 2011 16:57
Show Gist options
  • Select an option

  • Save jdelStrother/1304318 to your computer and use it in GitHub Desktop.

Select an option

Save jdelStrother/1304318 to your computer and use it in GitHub Desktop.
server {
server_name www.foo.com;
return 301 foo.com$request_uri;
}
server {
listen [::]:80;
server_name foo.com;
return 200;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment