]> git.pld-linux.org Git - packages/php.git/commitdiff
add sample how to disable php in user dirs
authorElan Ruusamäe <glen@delfi.ee>
Fri, 9 May 2014 17:23:58 +0000 (20:23 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Fri, 9 May 2014 17:23:58 +0000 (20:23 +0300)
taken from debian

php-mod_php.conf

index 9a9f298fb5aaf860de1f57bf64e829b2ae67c192..a5f5f592dc5771496ad51bbc8bafd3ae5cfec4bf 100644 (file)
@@ -19,4 +19,14 @@ LoadModule php5_module modules/libphp5.so
        <Files *.phtml>
                AddType application/x-httpd-php .phtml
        </Files>
+
+       # Uncomment to disable php in user directories.
+       # 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/users/*/public_html>
+#                      php_admin_value engine Off
+#              </Directory>
+#      </IfModule>
 </IfModule>
This page took 0.045052 seconds and 4 git commands to generate.