From 70369f8163223ac9917acd830bbdeae328362c73 Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Fri, 5 Feb 2021 21:01:43 +0100 Subject: [PATCH] Added subdirectory to try_files --- server.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.conf b/server.conf index 56173ca..2df83e2 100644 --- a/server.conf +++ b/server.conf @@ -67,7 +67,7 @@ server { } location ~ \.php$ { - try_files $uri =404; + try_files $uri $uri/ =404; add_header Access-Control-Allow-Origin *; include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php7.3-fpm.sock; @@ -81,4 +81,4 @@ server { deny all; return 404; } -} \ No newline at end of file +}