X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/5680fb8cfeab3486ae5bfe1283ffc6cf13ac57a2..5bac522a83a65e8a6c0b20e179ee794321ad4a99:/cookbooks/chef/templates/default/apache.erb diff --git a/cookbooks/chef/templates/default/apache.erb b/cookbooks/chef/templates/default/apache.erb index f6c1806b1..88684b82c 100644 --- a/cookbooks/chef/templates/default/apache.erb +++ b/cookbooks/chef/templates/default/apache.erb @@ -8,6 +8,7 @@ CustomLog /var/log/apache2/chef.openstreetmap.org-access.log combined ErrorLog /var/log/apache2/chef.openstreetmap.org-error.log + RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/ Redirect permanent / https://chef.openstreetmap.org/ @@ -20,6 +21,9 @@ SSLEngine on SSLProxyEngine on + SSLCertificateFile /etc/ssl/certs/chef.openstreetmap.org.pem + SSLCertificateKeyFile /etc/ssl/private/chef.openstreetmap.org.key ProxyPass / https://<%= node[:fqdn] %>:4443/ + ProxyPreserveHost on