diff options
author | Jonas Smedegaard <dr@jones.dk> | 2011-10-07 11:35:44 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2011-10-07 11:35:44 +0200 |
commit | cf5262457865f5b4a6abf73e73429b1db5464675 (patch) | |
tree | 5ca1fdada52d6bb24357958eea3e17dce91fd342 /apache2/conf.d | |
parent | e2b91202296bcb49046e84435844666e53b4f825 (diff) |
Disable php in homedirs.
Diffstat (limited to 'apache2/conf.d')
-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> |