Good afternoon, I have some PHP sites on the same Caddy server. There is a require_once () call that returns a file with variable declaration. All sites get only the variables from the first site configured in the caddy. As if the php page were running on the same site. Is there any way to isolate websites as if they were running in different environments?
Using the require () function the variables are correct, but I would like to keep the require_once call.
I tried to change the php-fpm port settings in Caddyfille, but it still didn’t work.
website1{
root /var/www/central
fastcgi / php-fpm:9000 php {
index index.php
}
}
website2{
root /var/www/grimf
fastcgi / php-fpm:9001 php {
index index.php
}
}
Thank you!