Skip to content

Instantly share code, notes, and snippets.

@luissquall
Created March 16, 2016 18:48
Show Gist options
  • Save luissquall/26c2ccfc9bb3876e85ea to your computer and use it in GitHub Desktop.
Save luissquall/26c2ccfc9bb3876e85ea to your computer and use it in GitHub Desktop.
server {
listen 80;
listen [::]:80;
server_name www.{{ domain }};
return 301 http://{{ domain }}$request_uri;
access_log /var/log/nginx/www.{{ domain }}.access.log;
error_log /var/log/nginx/www.{{ domain }}.error.log;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment