Disable access to php scripts in /storage

This commit is contained in:
David Bomba
2023-09-06 00:05:54 +10:00
parent c0150debbf
commit 87066953d3

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;