diff options
Diffstat (limited to 'apache2')
-rw-r--r-- | apache2/conf.d/local-php.conf | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/apache2/conf.d/local-php.conf b/apache2/conf.d/local-php.conf index f427805..fc6e91f 100644 --- a/apache2/conf.d/local-php.conf +++ b/apache2/conf.d/local-php.conf @@ -1,6 +1,16 @@ +# requires: php5 + <FilesMatch "\.ph(p3?|tml)$"> SetHandler application/x-httpd-php </FilesMatch> <FilesMatch "\.phps$"> SetHandler application/x-httpd-php-source </FilesMatch> +# To re-enable php in user directories comment the following lines +# (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it +# prevents .htaccess files from disabling it. +<IfModule mod_userdir.c> + <Directory /home/*/public_html> + php_admin_value engine Off + </Directory> +</IfModule> |