X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/e20f90dd1cde25885d1d35be1d5964f792512829..1ad79f5beef3408caa34cf502be456dc66159667:/cookbooks/web/templates/default/apache.frontend.erb diff --git a/cookbooks/web/templates/default/apache.frontend.erb b/cookbooks/web/templates/default/apache.frontend.erb index 717d3f69b..165b4adfc 100644 --- a/cookbooks/web/templates/default/apache.frontend.erb +++ b/cookbooks/web/templates/default/apache.frontend.erb @@ -6,7 +6,7 @@ # Basic server configuration # ServerName <%= node[:fqdn] %> - ServerAlias api.openstreetmap.org www.openstreetmap.org + ServerAlias api.openstreetmap.org www.openstreetmap.org 127.0.0.1 ServerAdmin webmaster@openstreetmap.org <% if port == 443 -%> @@ -15,6 +15,8 @@ # SSLEngine on SSLProxyEngine on + SSLCertificateFile /etc/ssl/certs/www.openstreetmap.org.pem + SSLCertificateKeyFile /etc/ssl/private/www.openstreetmap.org.key <% end -%> # @@ -56,7 +58,7 @@ # Block changeset scraper # RewriteCond %{HTTP_USER_AGENT} "OSMApp Tuner" - RewriteRule . - [F,L] + RewriteRule . - [F,L] # # Block requests for the old 404 map tile @@ -199,6 +201,11 @@ ProxyPass /api/0.6/relations balancer://backend/api/0.6/relations ProxyPassMatch ^(/trace/[0-9]+/data(|/|.xml))$ balancer://backend$1 + # + # Redirect ACME certificate challenges + # + RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/ + # # Redirect trac and wiki requests to the right places # @@ -303,6 +310,8 @@ ServerAlias * SSLEngine on + SSLCertificateFile /etc/ssl/certs/www.openstreetmap.org.pem + SSLCertificateKeyFile /etc/ssl/private/www.openstreetmap.org.key RedirectPermanent / https://www.openstreetmap.org/