From 5cf32f3baca88d30a8355b51a008deca51219727 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Tue, 30 Aug 2022 20:44:14 -0400 Subject: [PATCH] . --- Nginx/Server Blocks/hr.libraryofcode.org.conf | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Nginx/Server Blocks/hr.libraryofcode.org.conf b/Nginx/Server Blocks/hr.libraryofcode.org.conf index 99d14e6..16dd910 100644 --- a/Nginx/Server Blocks/hr.libraryofcode.org.conf +++ b/Nginx/Server Blocks/hr.libraryofcode.org.conf @@ -13,14 +13,13 @@ server { error_log /var/log/nginx/hr_error.log; location / { - try_files $uri $uri/ /index.php?$query_string; + try_files $uri $uri/ /index.php?$uri&$args; } - location ~ ^/(.+\.php)$ { - try_files $uri =404; - fastcgi_pass unix:/run/php/php7.2-fpm.sock; - fastcgi_index index.php; + location ~ \.php$ { + include snippets/fastcgi-php.conf; + fastcgi_pass unix:/var/run/php/php7.2-fpm.sock; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - include /etc/nginx/fastcgi_params; + include fastcgi_params; } }