aboutsummaryrefslogtreecommitdiffstats
path: root/community/php5/php5-module.conf
diff options
context:
space:
mode:
authorpawciobiel <pawciobiel@gmail.com>2016-08-15 14:05:45 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2017-11-23 10:22:15 +0000
commit91d57c3ab0335169b5805e0bfb8f9af826500837 (patch)
treef867472de4ac840d8439169a3c29f50840ed41e7 /community/php5/php5-module.conf
parent4dc975ed9793f58c6add55638af4999edf8575a8 (diff)
downloadaports-91d57c3ab0335169b5805e0bfb8f9af826500837.tar.bz2
aports-91d57c3ab0335169b5805e0bfb8f9af826500837.tar.xz
community/php5: Change php5-module.conf to use SetHandler
Avoids serving non php files using php handler. imported from https://github.com/alpinelinux/aports/pull/206
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>