server {
  server_name   <%= server_name %>;
  root          <%= root %>;

  location / {
    index   <%= index %>;
  }

  location ~ /\.ht {
    deny  all;
  }
}
server {
  server_name   <%= server_name %>;
  root          <%= root %>;

  location / {
    index   <%= index %>;
  }

  location = /favicon.ico {
    log_not_found off;
    access_log off;
  }

  location = /robots.txt {
    allow all;
    log_not_found off;
    access_log off;
  }

  location ~ /\. {
    deny all;
    access_log off;
    log_not_found off;
  }

}
Hide hidden files and do not log service files
Hide hidden files and do not log service files