Nginx - changing Default root directory causes not working php scripts

Clean Virtualmin (LEMP) installation. When you change Default root directory in Nginx Virtual Server configuration to something different than /home//public_html, php (fcgi) stop working on website because these lines not change in configuration file of given Virtual Server:

fastcgi_param SCRIPT_FILENAME /home//public_html$fastcgi_script_name;

fastcgi_param DOCUMENT_ROOT /home//public_html;

Seems as bug to me, because when you change these lines manually accordingly to change of Default root directory, everything work as expected

Status: 
Active

Comments

That's odd, as the code should already update those paths.

Is the actual home directory /home//public_html , or is it really /home/somedomain/public_html ?