From d765e760de5aef042dfdccae6b488e8f0d7d75f4 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Mon, 14 Feb 2022 18:42:37 -0500 Subject: [PATCH] fixes --- Nginx/Server Blocks/sis.libraryofcode.org.conf | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Nginx/Server Blocks/sis.libraryofcode.org.conf b/Nginx/Server Blocks/sis.libraryofcode.org.conf index 1f2a2e2..432eb92 100644 --- a/Nginx/Server Blocks/sis.libraryofcode.org.conf +++ b/Nginx/Server Blocks/sis.libraryofcode.org.conf @@ -14,10 +14,14 @@ server { try_files $uri $uri/ =404; } - location ~ \.php$ { - include snippets/fastcgi-php.conf; - fastcgi_pass unix:/run/php/php7.4-fpm.sock; - fastcgi_param HTACCESS on; - proxy_read_timeout 800; + location ~ [^/]\.php(/|$) { + fastcgi_split_path_info ^(.+\.php)(/.+)$; + fastcgi_index index.php; + fastcgi_pass unix:/run/php/php7.4.sock; + include fastcgi_params; + fastcgi_param PATH_INFO $fastcgi_path_info; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + fastcgi_read_timeout 300; + proxy_read_timeout 300; } }