Skip to content

Commit eeb3a3e

Browse files
feat: more effectively blocking site scanners
1 parent f146c02 commit eeb3a3e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

nginx/filesystem/etc/nginx/conf.d/nginx.conf

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ server {
4343
#charset koi8-r;
4444
#access_log /var/log/nginx/host.access.log main;
4545

46-
location /index.html {
46+
location / {
4747
root /usr/share/nginx/html;
4848
# First attempt to serve request as file, then
4949
# as directory, then redirect to index(angular) if no file found.
@@ -119,10 +119,6 @@ server {
119119
location /angular {
120120
return 404;
121121
}
122-
123-
location / {
124-
return 404;
125-
}
126122
}
127123

128124
server {

0 commit comments

Comments
 (0)