r9185@datura: manu | 2008-06-04 10:30:58 +0200
[manu/suphp.git] / debian / conf / suphp.conf
index 9639f54..edc5a27 100644 (file)
@@ -1,7 +1,17 @@
 <IfModule mod_suphp.c>
        AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml
        suPHP_AddHandler application/x-httpd-php
-       suPHP_Engine on
+
+    <Directory />
+        suPHP_Engine on
+    </Directory>
+
+    # By default, disable suPHP for debian packaged web applications as files
+    # are owned by root and cannot be executed by suPHP because of min_uid.
+    <Directory /usr/share>
+        suPHP_Engine off
+    </Directory>
+
 # # Use a specific php config file (a dir which contains a php.ini file)
 #      suPHP_ConfigPath /etc/php4/cgi/suphp/
 # # Tells mod_suphp NOT to handle requests with the type <mime-type>.