Fix installation on root path

This commit is contained in:
Miraty 2022-03-05 16:04:16 +01:00
parent a55a7c5f91
commit 940e3fd593

View file

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