Disallow download of dabase through webserver

This commit is contained in:
ellite 2023-12-12 21:53:33 +01:00
parent 8cc5fe80ae
commit 67ac4126f2

View File

@ -37,6 +37,11 @@ http {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params; include fastcgi_params;
} }
location ~ \.db$ {
deny all;
return 403;
}
} }
include /etc/nginx/conf.d/*.conf; include /etc/nginx/conf.d/*.conf;