on ubuntu 16.04LTS the following lines added to apache2.conf via IncludeOptional prevent indexing and allow parsing of php in html files
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options -Indexes +FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
AddType application/x-httpd-php .php .htm .html
The same code added on a 18.04LTS server prevent indexing but wont parse php in html.
It’s a long time since I set up the 16.06 Is there a change in 18.04 or am I forgetting something.
Go to Source
Author: FRANK POLAN