Categories
Linux Mastering Development Ubuntu

Ubuntu 18.04 LTS Apache2 parse php in html

on ubuntu 16.04LTS the following lines added to apache2.conf via IncludeOptional prevent indexing and allow parsing of php in html files <Directory /> 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 […]

Categories
Linux Mastering Development Ubuntu

Ubuntu 18.04LTS apache2 parse php in html

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 […]