Skip to content

Commit 409465c

Browse files
committed
调整 Nginx 站点配置
1 parent 35d20d3 commit 409465c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

16.04/nginx_site_conf.tpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ server {
2626
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
2727
fastcgi_index index.php;
2828
include fastcgi_params;
29-
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
29+
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
30+
fastcgi_param DOCUMENT_ROOT $realpath_root;
3031
3132
fastcgi_intercept_errors off;
3233
fastcgi_buffer_size 16k;

0 commit comments

Comments
 (0)