We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1902cd commit 6e6befaCopy full SHA for 6e6befa
1 file changed
resources/modules/Nginx/conf/snippets/block_sensitive_files.conf
@@ -1,5 +1,5 @@
1
# Block access to backup, config, command, and log files
2
3
-location ~* (?:\.(?:bak|co?nf(ig)?|in[ci]|log|sh|sql|tar|t?gz)|~)$ {
+location ~* (\.(bak|conf|config|cnf|ini|inc|log|sh|sql|tar|tgz)|~)$ {
4
deny all;
5
-}
+}
0 commit comments