Skip to content

Commit 598b3c9

Browse files
Merge pull request #119 from nullinside-development-group/feat/scanners
feat: more effectively blocking site scanners
2 parents 469626e + ea0e819 commit 598b3c9

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,17 +43,13 @@ server {
4343
#charset koi8-r;
4444
#access_log /var/log/nginx/host.access.log main;
4545

46-
location = / {
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.
5050
try_files $uri $uri/ /index.html;
5151
}
5252

53-
location / {
54-
return 404;
55-
}
56-
5753
location /api/v1 {
5854
proxy_pass http://${IP_ADDRESS}:8081;
5955
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

0 commit comments

Comments
 (0)