Fix installation on root path

This commit is contained in:
Miraty 2022-03-05 16:04:16 +01:00
parent a55a7c5f91
commit 940e3fd593
1 changed files with 5 additions and 6 deletions

View File

@ -7,16 +7,15 @@ location __PATH__/ {
index index.php; index index.php;
# Chrooted PHP-FPM # Chrooted PHP-FPM
location ~ ^__PATH__(?<chroot_path>/.*\.php)$ { #sub_path_only location ~ ^__PATH__(?<chroot_path>/.*\.php)$ {
fastcgi_split_path_info ^(.+?\.php)(/.*)$; #root_path_only location ~ ^(?<chroot_path>/.*\.php)$ {
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
alias /; alias /;
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
fastcgi_index index.php; fastcgi_index index.php;
include fastcgi_params; fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_param REMOTE_USER $remote_user;
fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $chroot_path; fastcgi_param SCRIPT_FILENAME $chroot_path;
include fastcgi_params;
} }
# Security related headers # Security related headers