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; } }