Commit ccce1cad authored by omega8cc's avatar omega8cc

Apache: Add Alias directive for /.well-known/acme-challenge for hosting_le support

parent 96e776e1
<?php
$aegir_root = drush_get_option('aegir_root');
if (!$aegir_root && $server->aegir_root) {
$aegir_root = $server->aegir_root;
}
?>
Alias /<?php print $subdir; ?>/.well-known/acme-challenge <?php print $aegir_root; ?>/tools/le/.acme-challenges
Alias /<?php print $subdir; ?> <?php print $this->root; ?>
<Location /<?php print $subdir; ?>>
......
......@@ -3,6 +3,15 @@
ServerAdmin <?php print $this->site_mail; ?>
<?php endif;?>
<?php
$aegir_root = drush_get_option('aegir_root');
if (!$aegir_root && $server->aegir_root) {
$aegir_root = $server->aegir_root;
}
?>
Alias /.well-known/acme-challenge <?php print $aegir_root; ?>/tools/le/.acme-challenges
DocumentRoot <?php print $this->root; ?>
ServerName <?php print $this->uri; ?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment