aboutsummaryrefslogtreecommitdiffstats
path: root/community/php5/php5-module.conf
diff options
context:
space:
mode:
Diffstat (limited to 'community/php5/php5-module.conf')
-rw-r--r--community/php5/php5-module.conf12
1 files changed, 10 insertions, 2 deletions
diff --git a/community/php5/php5-module.conf b/community/php5/php5-module.conf
index 9dae61fa81..32a88145a5 100644
--- a/community/php5/php5-module.conf
+++ b/community/php5/php5-module.conf
@@ -1,5 +1,13 @@
LoadModule php5_module modules/libphp5.so
DirectoryIndex index.php index.html
-AddHandler application/x-httpd-php .php
-AddHandler application/x-httpd-php-source .phps
+
+<FilesMatch \.php$>
+ SetHandler application/x-httpd-php
+</FilesMatch>
+
+# Uncomment the following to allow .phps files to be handled by the php source filter,
+# and displayed as syntax-highlighted source code
+#<FilesMatch "\.phps$">
+# SetHandler application/x-httpd-php-source
+#</FilesMatch>