X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/854aa1791fb1dcec401f6dc0400f2707f228f6cb..4905aae927c0671d2b8e5b5c9665122fb39b0877:/cookbooks/nominatim/templates/default/apache.erb diff --git a/cookbooks/nominatim/templates/default/apache.erb b/cookbooks/nominatim/templates/default/apache.erb index 1afe817e5..b79e76dbe 100644 --- a/cookbooks/nominatim/templates/default/apache.erb +++ b/cookbooks/nominatim/templates/default/apache.erb @@ -5,18 +5,21 @@ ServerName <%= node[:fqdn] %> ServerAlias nominatim.openstreetmap.org ServerAlias nominatim.osm.org - ServerAlias nominatim.openstreetmap.org + ServerAlias nominatim.openstreetmap.com ServerAlias nominatim.openstreetmap.net ServerAlias nominatim.openstreetmaps.org ServerAlias nominatim.openmaps.org ServerAdmin webmaster@openstreetmap.org <% if port == 443 -%> - # # Enable SSL - # SSLEngine on SSLProxyEngine on + SSLCertificateFile /etc/ssl/certs/nominatim.openstreetmap.org.pem + SSLCertificateKeyFile /etc/ssl/private/nominatim.openstreetmap.org.key +<% else -%> + # Redirect ACME challenges for certificate issuance + RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/ <% end -%> # Remove Proxy request header to mitigate https://httpoxy.org/