Merge pull request #532 from turbo124/master

Disable access to php scripts in /storage
This commit is contained in:
David Bomba
2023-09-06 00:10:50 +10:00
committed by GitHub

View File

@@ -16,6 +16,11 @@ server {
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
location ~* /storage/.*\.php$ {
return 503;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass app:9000;