remove slash between $document_root and $fastcgi_script_name
This cause invalid links when hosted on a sub-uri like /dav/. The
Flake frameworks generates links to //dav/admin, which points to
nowhere.
Former-commit-id: 0fd49595fd
This commit is contained in:
parent
f990c3de1a
commit
83b053439f
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ server {
|
|||
try_files $fastcgi_script_name =404;
|
||||
fastcgi_split_path_info ^(.+\.php)(.*)$;
|
||||
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
include /etc/nginx/fastcgi_params;
|
||||
}
|
||||
|
@ -25,4 +25,4 @@ server {
|
|||
location = /50x.html {
|
||||
root /var/www/nginx-default;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue