PHP customization for a vhost is explained here: GitHub - NethServer/ns8-webserver: A webserver (nginx based) with php-fpm stack
Here is an example how to do it: