From e24e14c7188352a36a597796dea2d67f35d4d79f Mon Sep 17 00:00:00 2001 From: Michiel Kodde Date: Thu, 1 Dec 2022 13:22:50 +0100 Subject: [PATCH] Tweak nginx configuration --- docker/ssp-debug-sp/conf/nginx.conf | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docker/ssp-debug-sp/conf/nginx.conf b/docker/ssp-debug-sp/conf/nginx.conf index b8b0146..62e0612 100644 --- a/docker/ssp-debug-sp/conf/nginx.conf +++ b/docker/ssp-debug-sp/conf/nginx.conf @@ -13,11 +13,14 @@ server { include /opt/docker/etc/nginx/vhost.ssl.conf; location ~ \.php$ { - fastcgi_split_path_info ^(.+\.php)(/.+)$; + fastcgi_split_path_info ^(.+?\.php)(/.*)$; + if (!-f $document_root$fastcgi_script_name) { + return 404; + } fastcgi_pass php; - fastcgi_param PATH_INFO $fastcgi_path_info; + fastcgi_index index.php; include fastcgi_params; - fastcgi_param SCRIPT_FILENAME $request_filename; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_read_timeout 600; } }