Skip to content

Instantly share code, notes, and snippets.

@zerokol

zerokol/zerokol.com

Created Jul 6, 2018
Embed
What would you like to do?
Simple NGINX setup to serve a static site
# redirect www to @
server {
server_name www.zerokol.com;
rewrite ^(.*) http://zerokol.com$1 permanent;
}
server {
listen 80;
server_name zerokol.com;
server_tokens off;
root /var/www/html/zerokol/;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment