Commit 7bff65d2 authored by mpv's avatar mpv Committed by omega8cc

Issue #2730977 by mpv: 403 Forbidden for hosting_le acme challenges

parent f6a1d2cd
......@@ -98,6 +98,11 @@ if ($this->redirection) {
</IfModule>
</Directory>
# Allow access to hosting_le challenges directory.
<Directory "<?php print $aegir_root; ?>/tools/le/.acme-challenges">
Require all granted
</Directory>
</VirtualHost>
<?php endif; ?>
......
......@@ -46,3 +46,8 @@ Alias /<?php print $subdir; ?> <?php print $this->root; ?>
Options None
Options +FollowSymLinks
</Directory>
# Allow access to hosting_le challenges directory.
<Directory "<?php print $aegir_root; ?>/tools/le/.acme-challenges">
Require all granted
</Directory>
......@@ -95,6 +95,11 @@ if ($this->redirection || $ssl_redirection) {
</IfModule>
</Directory>
# Allow access to hosting_le challenges directory.
<Directory "<?php print $aegir_root; ?>/tools/le/.acme-challenges">
Require all granted
</Directory>
<?php
$if_subsite = $this->data['http_subdird_path'] . '/' . $this->uri;
if (provision_hosting_feature_enabled('subdirs') && provision_file()->exists($if_subsite)->status()) {
......
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