From 84f00a759ce8e48b3bb40ad2ac01f485ef702563 Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Sun, 17 Aug 2025 11:27:09 +0200 Subject: [PATCH] As per review by ghost --- webmails/nginx-webmail.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webmails/nginx-webmail.conf b/webmails/nginx-webmail.conf index 25e34383..bddcff2b 100644 --- a/webmails/nginx-webmail.conf +++ b/webmails/nginx-webmail.conf @@ -36,8 +36,8 @@ server { try_files $uri $uri/ /index.php$args; } - location ~ ^(.+\.php)(.*)$ { - fastcgi_split_path_info ^(.+\.php)(.*)$; + location ~ [^/]\.php(/|$) { + fastcgi_split_path_info ^(.+\.php)(/.*)$; if (!-f $document_root$fastcgi_script_name) { return 404; }