make it so nginx will only execute php on the upload script. This fixes the uploader from being able to upload any php script and that being able to be executed.
All checks were successful
/ docker (push) Successful in 1m47s

This commit is contained in:
Lee 2023-07-05 00:38:53 +01:00
parent 7efee12364
commit d9da3eb9ab

View File

@ -24,7 +24,7 @@ http {
client_max_body_size 500M; # Will get replaced by the environment variable MAX_UPLOAD_SIZE
location ~ \.php$ {
location upload.php {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;