From 80b7db0e575313a620e2c46e63fa135b05a58aab Mon Sep 17 00:00:00 2001 From: Tobias Herre Date: Mon, 6 Nov 2023 21:40:47 +0100 Subject: [PATCH] define default_php_handler in apache --- apache.cf | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apache.cf b/apache.cf index 0a1480e..19f5d21 100644 --- a/apache.cf +++ b/apache.cf @@ -13,6 +13,9 @@ classes: # "apache enable_php"; vars: + "default_php_handler" string => "application/x-httpd-php", unless => isvariable( $(this.promiser)); + + "admin_email" string => "[]",unless => isvariable( $(this.promiser) ) ; @@ -216,7 +219,7 @@ commands: reports: } -bundle agent install_apache +bundle agent install_apache(raw) { methods: @@ -338,7 +341,7 @@ vars: "doc_root":"$(apache.www_dir)/$(site_param[domain])", "doc_root_options":"Indexes FollowSymLinks", "php":true, - "php_handler":"application/x-httpd-php" + "php_handler":"$(apache.default_php_handler)" } ';