.dev/useful/nginx_conf/nginx_basic.conf

Summary

Maintainability
Test Coverage
if ($request_method !~ ^(GET|HEAD|POST)$ ) {
    return 444;
}
location = /favicon.ico {
    access_log off;
    log_not_found off;
    try_files $uri @empty_gif;
}
location @empty_gif {
    empty_gif;
}
## disabled new frontend admin panels on user frontends, use apache-based on central instead
#location /admin/ { deny all; }

location ~ "/(\.htaccess|\.htpasswd|\.svn|\.git|\.\./)" { deny all; }
location /server-status {
    stub_status on;
    access_log   off;
    allow 127.0.0.1; 
    deny all;
}