File tree Expand file tree Collapse file tree 4 files changed +10
-3
lines changed Expand file tree Collapse file tree 4 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 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/ )
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments