X-Git-Url: https://dehnerts.com/gitweb/?a=blobdiff_plain;f=mods-available%2Fphp5.conf;h=6eced7636483b5b00efb5bb7ae74c7acc1c714c1;hb=7eb82523b8601ebdabdf76ad85071b43d2c149d0;hp=04fc35744225f25550003c6dc47275c6fbb1ce13;hpb=c1c14e8db7d9ac7055affb2cdab504ec8ed5687f;p=sysconfig%2Fapache2.git diff --git a/mods-available/php5.conf b/mods-available/php5.conf index 04fc357..6eced76 100644 --- a/mods-available/php5.conf +++ b/mods-available/php5.conf @@ -1,4 +1,27 @@ - - AddType application/x-httpd-php .php .phtml .php3 - AddType application/x-httpd-php-source .phps - + + SetHandler application/x-httpd-php + + + SetHandler application/x-httpd-php-source + # Deny access to raw php sources by default + # To re-enable it's recommended to enable access to the files + # only in specific virtual host or directory + Order Deny,Allow + Deny from all + +# Deny access to files without filename (e.g. '.php') + + Order Deny,Allow + Deny from all + + +# Running PHP scripts in user directories is disabled by default +# +# To re-enable PHP in user directories comment the following lines +# (from to .) Do NOT set it to On as it +# prevents .htaccess files from disabling it. +# +# +# php_admin_flag engine Off +# +#