Skip to content

Instantly share code, notes, and snippets.

@thiagosf
Created September 5, 2019 00:03
Show Gist options
  • Save thiagosf/67e26d6902d5fcabfe2082790898109c to your computer and use it in GitHub Desktop.
Save thiagosf/67e26d6902d5fcabfe2082790898109c to your computer and use it in GitHub Desktop.
Nginx: disable dot files less deny list
## Disable .htaccess and other hidden files
location ~ /\.(?!well-known).* {
deny all;
access_log off;
log_not_found off;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment