summaryrefslogtreecommitdiff
path: root/apache2/conf.d
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2011-10-07 11:35:44 +0200
committerJonas Smedegaard <dr@jones.dk>2011-10-07 11:35:44 +0200
commitcf5262457865f5b4a6abf73e73429b1db5464675 (patch)
tree5ca1fdada52d6bb24357958eea3e17dce91fd342 /apache2/conf.d
parente2b91202296bcb49046e84435844666e53b4f825 (diff)
Disable php in homedirs.
Diffstat (limited to 'apache2/conf.d')
-rw-r--r--apache2/conf.d/local-php.conf10
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>