Upstream config updates (Lucid->Precise)
[sysconfig/apache2.git] / mods-available / php5.conf
index 04fc35744225f25550003c6dc47275c6fbb1ce13..2533117ac60c3c4fb2628b98883e0dff7e044dd1 100644 (file)
@@ -1,4 +1,16 @@
 <IfModule mod_php5.c>
-  AddType application/x-httpd-php .php .phtml .php3
-  AddType application/x-httpd-php-source .phps
+    <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>
 </IfModule>