diff options
-rw-r--r-- | apache2/conf.d/local-php.conf | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apache2/conf.d/local-php.conf b/apache2/conf.d/local-php.conf index 2973fe7..f427805 100644 --- a/apache2/conf.d/local-php.conf +++ b/apache2/conf.d/local-php.conf @@ -1,2 +1,6 @@ -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> |