Skip to content

Commit df78193

Browse files
authored
Add .htpasswd to banned locations in nginx config
1 parent 8cdefb0 commit df78193

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nginx.conf.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,6 @@ gzip_types
242242
gzip_vary on;
243243

244244
# Banned locations (only reached if the earlier PHP entry point regexes don't match)
245-
location ~* (\.php$|\.phtml$|\.htaccess$|\.git) {
245+
location ~* (\.php$|\.phtml$|\.htaccess$|\.htpasswd$|\.git) {
246246
deny all;
247247
}

0 commit comments

Comments
 (0)