Created
September 5, 2019 00:03
-
-
Save thiagosf/67e26d6902d5fcabfe2082790898109c to your computer and use it in GitHub Desktop.
Nginx: disable dot files less deny list
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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