Skip to content

Instantly share code, notes, and snippets.

@imliam imliam/nginx.conf
Created Mar 21, 2017

Embed
What would you like to do?
Nginx - Redirect www to non-www
server {
server_name www.yourdomain.com;
return 301 $scheme://yourdomain.com$request_uri;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.