Skip to content

Instantly share code, notes, and snippets.

@holmesconan
Last active May 26, 2016 14:20
Show Gist options
  • Save holmesconan/8cfd79dd24cd0e7e00736115669239a1 to your computer and use it in GitHub Desktop.
Save holmesconan/8cfd79dd24cd0e7e00736115669239a1 to your computer and use it in GitHub Desktop.
Set prefer domain
server {
listen 80;
server_name example.org;
return 301 http://www.example.org$request_uri;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment