I would like to configure an Apache webserver 2.4.37 to hide the fact that it is serving PHP files.
For this, I renamed all .php files to .html and inserted the following directive:
AddType application/x-httpd-php .htm .html
However, this does not work; all .html files are not passed through PHP. Any ideas?
The version of PHP installed is 7.2.24.
Apache/2.4.38 (Debian)changing the extension to.pyand worked. Do you want I share thephpinfo? I don't know if it could be useful. PHP 7.3.14.