aboutsummaryrefslogtreecommitdiffstats
path: root/community/php7/php7-module.conf
diff options
context:
space:
mode:
authorAndy Postnikov <apostnikov@gmail.com>2017-05-04 06:05:47 +0300
committerWilliam Pitcock <nenolod@dereferenced.org>2017-05-11 04:10:02 +0000
commit0a12727db8ad465ca708aedf87e07ddb08ad17f2 (patch)
tree0fd9f8ec1bff0c31d07e4c6d370e7cd6c0e7db94 /community/php7/php7-module.conf
parent318c497f003be1645152235d1b08005f7dfde3ee (diff)
downloadaports-0a12727db8ad465ca708aedf87e07ddb08ad17f2.tar.bz2
aports-0a12727db8ad465ca708aedf87e07ddb08ad17f2.tar.xz
community/php7: Change php7-module.conf to use SetHandler
Diffstat (limited to 'community/php7/php7-module.conf')
-rw-r--r--community/php7/php7-module.conf12
1 files changed, 10 insertions, 2 deletions
diff --git a/community/php7/php7-module.conf b/community/php7/php7-module.conf
index cf7573bb10..4c26b8f1ca 100644
--- a/community/php7/php7-module.conf
+++ b/community/php7/php7-module.conf
@@ -1,5 +1,13 @@
LoadModule php7_module modules/mod_php7.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>