From 6e685470d7696967b0c114179bd8d8c730c9a4f4 Mon Sep 17 00:00:00 2001 From: binary Date: Fri, 29 Jan 2021 11:33:10 +0100 Subject: Allow acme challenge for all subdomains --- roles/httpd/templates/httpd.conf.j2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/httpd/templates/httpd.conf.j2 b/roles/httpd/templates/httpd.conf.j2 index 9a028f9..aef96c5 100644 --- a/roles/httpd/templates/httpd.conf.j2 +++ b/roles/httpd/templates/httpd.conf.j2 @@ -15,6 +15,12 @@ types { {% if ansible_host == global.dcontroller %} server "default" { listen on localhost port 8888 + + location "/.well-known/acme-challenge/*" { + root "/acme" + request strip 2 + } + location * { block return 302 "https://\$HTTP_HOST\$REQUEST_URI" } -- cgit v1.2.3