From 0eec1fe0782fc1b3e0a1319fdafaa75a3873555b Mon Sep 17 00:00:00 2001 From: Andrew Welch Date: Tue, 23 Jun 2020 11:23:28 -0400 Subject: [PATCH 1/2] Explicitly set `DOCUMENT_ROOT` --- forge-example/NginxConfiguration.conf | 3 ++- sites-available/basic_localdev.com.conf | 3 ++- sites-available/somedomain.com.conf | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/forge-example/NginxConfiguration.conf b/forge-example/NginxConfiguration.conf index ecf244d..242ef43 100644 --- a/forge-example/NginxConfiguration.conf +++ b/forge-example/NginxConfiguration.conf @@ -123,8 +123,9 @@ server { fastcgi_pass unix:/var/run/php/php7.1-fpm.sock; fastcgi_index index.php; include fastcgi_params; - fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; + fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; + fastcgi_param DOCUMENT_ROOT $realpath_root; fastcgi_param HTTP_PROXY ""; fastcgi_param HTTP_HOST SOMEDOMAIN.com; diff --git a/sites-available/basic_localdev.com.conf b/sites-available/basic_localdev.com.conf index 95916fc..cd89463 100644 --- a/sites-available/basic_localdev.com.conf +++ b/sites-available/basic_localdev.com.conf @@ -51,8 +51,9 @@ server { fastcgi_pass unix:/var/run/php/php7.1-fpm.sock; fastcgi_index index.php; include fastcgi_params; - fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; + fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; + fastcgi_param DOCUMENT_ROOT $realpath_root; fastcgi_param HTTP_PROXY ""; fastcgi_param HTTP_HOST SOMEDOMAIN.com; diff --git a/sites-available/somedomain.com.conf b/sites-available/somedomain.com.conf index 8c8f83b..37263b6 100644 --- a/sites-available/somedomain.com.conf +++ b/sites-available/somedomain.com.conf @@ -129,8 +129,9 @@ server { fastcgi_pass unix:/var/run/php/php7.1-fpm.sock; fastcgi_index index.php; include fastcgi_params; - fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; + fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; + fastcgi_param DOCUMENT_ROOT $realpath_root; fastcgi_param HTTP_PROXY ""; fastcgi_param HTTP_HOST SOMEDOMAIN.com; From 3a262a71af83e9b884bfe61cd9b38eadab2dfa24 Mon Sep 17 00:00:00 2001 From: Andrew Welch Date: Tue, 23 Jun 2020 11:24:18 -0400 Subject: [PATCH 2/2] Version 1.0.27 --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ec9bd4..c5b216f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Nginx-Craft Changelog +## 1.0.27 - 2020.06.23 +### Changed +* Explicitly set `DOCUMENT_ROOT` + ## 1.0.26 - 2020.06.23 ### Changed * Changed `$document_root` to `$realpath_root` to sidestep opcache issues automatically [Learn More](https://ma.ttias.be/php-opcache-and-symlink-based-deploys/)