From 4e4518a8d7fbaf4de74dac6b81a465d28458b439 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 11 Nov 2016 11:20:28 +0100 Subject: use global alias to work also if there are redirects --- acme.conf | 7 +++++++ src/server/plugins-available/apache2_plugin.inc.php | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 acme.conf diff --git a/acme.conf b/acme.conf new file mode 100644 index 0000000..c1a89b8 --- /dev/null +++ b/acme.conf @@ -0,0 +1,7 @@ +Alias /.well-known /var/www/acme/.well-known + + + AllowOverride All + order allow,deny + allow from all + diff --git a/src/server/plugins-available/apache2_plugin.inc.php b/src/server/plugins-available/apache2_plugin.inc.php index 16ba38e..a35cb24 100755 --- a/src/server/plugins-available/apache2_plugin.inc.php +++ b/src/server/plugins-available/apache2_plugin.inc.php @@ -1021,7 +1021,7 @@ class apache2_plugin { $crt_tmp_file = "/etc/acme.sh/".$domain."/".$domain.".cer"; $key_tmp_file = "/etc/acme.sh/".$domain."/".$domain.".key"; $bundle_tmp_file = "/etc/acme.sh/".$domain."/fullchain.cer"; - $webroot = $data['new']['document_root']."/".$web_folder; + $webroot = "/var/www/acme"; //* check if we have already a Let's Encrypt cert //if(!file_exists($crt_tmp_file) && !file_exists($key_tmp_file)) { -- cgit v1.2.3