Blocking in nginx everything that begins with dot

This commit is contained in:
myvesta 2022-03-11 15:55:00 +01:00
commit 54c3fd1e13
213 changed files with 213 additions and 213 deletions

View file

@ -33,7 +33,7 @@ server {
proxy_pass https://%ip%:%web_ssl_port%;
}
location ~ /\.ht {return 404;}
location ~ /\. {return 404;}
location ~ /\.svn/ {return 404;}
location ~ /\.git/ {return 404;}
location ~ /\.hg/ {return 404;}