I'm running Apache 2.4.41 and PHP 8.1.6 as FPM on Ubuntu. I had PHP as Apache module but since mod_php doesn't support http/2 I disabled it and installed PHP-FPM.
On my server PHP code is included in some .html files and I've used AddType application/x-httpd-php .html .htm
to also process .html files like .php files, but with PHP-FPM this doesn't work anymore.
If I continue to use AddType application/x-httpd-php .html .htm
, .html files are offered to the client for download, but the PHP code itself is not processed. So I tried security.limit_extensions in php.ini file but that has no effect. Does anyone know how Apache + PHP-FPM can also process .html files like .php files?