Skip to content

Instantly share code, notes, and snippets.

@mudivili mudivili/nginx forked from mockra/nginx
Created Aug 16, 2017

Embed
What would you like to do?
nginx config for static site
server {
listen 80;
root /var/www/yourdomain.com/public;
index index.html index.htm;
server_name yourdomain.com;
location / {
default_type "text/html";
try_files $uri.html $uri $uri/ /index.html;
}
}
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.