Skip to content

Commit 1eca62d

Browse files
author
Andrew Welch
committed
Merge branch 'release/1.0.27'
2 parents 15c4ce3 + 3a262a7 commit 1eca62d

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Nginx-Craft Changelog
22

3+
## 1.0.27 - 2020.06.23
4+
### Changed
5+
* Explicitly set `DOCUMENT_ROOT`
6+
37
## 1.0.26 - 2020.06.23
48
### Changed
59
* Changed `$document_root` to `$realpath_root` to sidestep opcache issues automatically [Learn More](https://ma.ttias.be/php-opcache-and-symlink-based-deploys/)

forge-example/NginxConfiguration.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,9 @@ server {
123123
fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
124124
fastcgi_index index.php;
125125
include fastcgi_params;
126-
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
127126
fastcgi_param PATH_INFO $fastcgi_path_info;
127+
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
128+
fastcgi_param DOCUMENT_ROOT $realpath_root;
128129
fastcgi_param HTTP_PROXY "";
129130
fastcgi_param HTTP_HOST SOMEDOMAIN.com;
130131

sites-available/basic_localdev.com.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ server {
5151
fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
5252
fastcgi_index index.php;
5353
include fastcgi_params;
54-
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
5554
fastcgi_param PATH_INFO $fastcgi_path_info;
55+
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
56+
fastcgi_param DOCUMENT_ROOT $realpath_root;
5657
fastcgi_param HTTP_PROXY "";
5758
fastcgi_param HTTP_HOST SOMEDOMAIN.com;
5859

sites-available/somedomain.com.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,9 @@ server {
129129
fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
130130
fastcgi_index index.php;
131131
include fastcgi_params;
132-
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
133132
fastcgi_param PATH_INFO $fastcgi_path_info;
133+
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
134+
fastcgi_param DOCUMENT_ROOT $realpath_root;
134135
fastcgi_param HTTP_PROXY "";
135136
fastcgi_param HTTP_HOST SOMEDOMAIN.com;
136137

0 commit comments

Comments
 (0)