Skip to content

Commit 3fc7b6d

Browse files
committed
fix(fastcgi): fix symlink support in fastcgi FILENAME param
1 parent 0eebd04 commit 3fc7b6d

File tree

1 file changed

+2
-1
lines changed
  • spaceonfire/presets/default/nginx/vhost.common.d

1 file changed

+2
-1
lines changed

spaceonfire/presets/default/nginx/vhost.common.d/20-php.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ location ~ \.php$ {
33
try_files $uri =404;
44
fastcgi_split_path_info ^(.+\.php)(/.+)$;
55
fastcgi_pass php-upstream;
6-
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
6+
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
7+
fastcgi_param DOCUMENT_ROOT $realpath_root;
78
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
89
fastcgi_index index.php;
910
include fastcgi_params;

0 commit comments

Comments
 (0)