Skip to content

Commit 323be18

Browse files
committed
Merge branch 'release/1.0.26'
2 parents 7485349 + e9f3869 commit 323be18

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-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.26 - 2020.06.23
4+
### Changed
5+
* Changed `$document_root` to `$realpath_root` to sidestype opcache issues automatically [Learn More](https://ma.ttias.be/php-opcache-and-symlink-based-deploys/)
6+
37
## 1.0.25 - 2020.06.15
48
### Changed
59
* Route any 404s for `expires.conf` matches back through Craft for handling

forge-example/NginxConfiguration.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ 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 $document_root$fastcgi_script_name;
126+
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
127127
fastcgi_param PATH_INFO $fastcgi_path_info;
128128
fastcgi_param HTTP_PROXY "";
129129
fastcgi_param HTTP_HOST SOMEDOMAIN.com;

sites-available/basic_localdev.com.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ 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 $document_root$fastcgi_script_name;
54+
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
5555
fastcgi_param PATH_INFO $fastcgi_path_info;
5656
fastcgi_param HTTP_PROXY "";
5757
fastcgi_param HTTP_HOST SOMEDOMAIN.com;

sites-available/somedomain.com.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ 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 $document_root$fastcgi_script_name;
132+
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
133133
fastcgi_param PATH_INFO $fastcgi_path_info;
134134
fastcgi_param HTTP_PROXY "";
135135
fastcgi_param HTTP_HOST SOMEDOMAIN.com;

0 commit comments

Comments
 (0)