define default_php_handler in apache

This commit is contained in:
Tobias Herre 2023-11-06 21:40:47 +01:00
parent e94b6c6f7e
commit 80b7db0e57
1 changed files with 5 additions and 2 deletions

View File

@ -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)"
}
';