function letsencrypt_provision_apache_server_config in Aegir HTTPS 7.3
Implements hook_provision_apache_server_config().
See also
https://github.com/lukas2511/dehydrated/blob/master/docs/wellknown.md
File
- submodules/
letsencrypt/ drush/ letsencrypt.drush.inc, line 71 - A Let's Encrypt implementation of the Certificate service for Provision.
Code
function letsencrypt_provision_apache_server_config($data) {
if (d()->type != 'server') {
return '';
}
$server = d();
if ($server->Certificate_service_type == 'LetsEncrypt' && ($challenge_path = $server->letsencrypt_challenge_path)) {
drush_log(dt("Injecting Let's Encrypt 'well-known' ACME challenge directory ':path' into Apache default vhost entry.", array(
':path' => $challenge_path,
)));
return letsencrypt_generate_apache_wellknown_lines($challenge_path);
}
}