Skip to content

Instantly share code, notes, and snippets.

@benlovell
Created January 21, 2013 08:52
Show Gist options
  • Save benlovell/4584704 to your computer and use it in GitHub Desktop.
Save benlovell/4584704 to your computer and use it in GitHub Desktop.
Nginx rewriting
server {
listen 80;
server_name www.bleh.com;
return 301 $scheme://bleh.com$request_uri;
}
server {
listen 80;
server_name www.bleh.com;
## ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment