From 91d57c3ab0335169b5805e0bfb8f9af826500837 Mon Sep 17 00:00:00 2001 From: pawciobiel Date: Mon, 15 Aug 2016 14:05:45 +0200 Subject: 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 --- community/php5/php5-module.conf | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'community/php5/php5-module.conf') 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 + + + SetHandler application/x-httpd-php + + +# Uncomment the following to allow .phps files to be handled by the php source filter, +# and displayed as syntax-highlighted source code +# +# SetHandler application/x-httpd-php-source +# -- cgit v1.2.3