Skip to content

Instantly share code, notes, and snippets.

@cherring
Created May 3, 2009 12:22
Show Gist options
  • Save cherring/105974 to your computer and use it in GitHub Desktop.
Save cherring/105974 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name www.domain.com;
rewrite ^/(.*) http://domain.com/$1 permanent;
}
server {
listen 80;
server_name domain.com;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment