I have some old sites with php code in html files. It worked with Addtype in htaccess before. Here it doesn’t work this way. I read eris advice here - Not work PHP code in HTML files - #4 by eris but I do not need php in html for all my sites on the server, but just for 1 or 2. So I decided to go through local site config. I copied
Note: Once you check whether it works, you would need to create customized php, nginx and apache templates for your domain with all these changes or the conf will be overwritten when rebuilding the web domain.
Thanks a lot, did as you said, created templates, it works fine.
Just one addition, you should add security.limit_extensions = .htm .php otherwise php files will not work (I have both .php and php in .htm).