gogotanaka
2/18/2014 - 1:13 AM

nginx config for static site

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;
  }
}