X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/1d07e74a1f0c16c2cfc3d5cac0eb6930d6d84bc1..591c252f356e4f6d2f4e9ac08a199782ae05bc7c:/cookbooks/gps-tile/templates/default/apache.erb diff --git a/cookbooks/gps-tile/templates/default/apache.erb b/cookbooks/gps-tile/templates/default/apache.erb index 73564f543..7dbd24b41 100644 --- a/cookbooks/gps-tile/templates/default/apache.erb +++ b/cookbooks/gps-tile/templates/default/apache.erb @@ -3,16 +3,17 @@ <% [80, 443].each do |port| -%> > # Basic server configuration - ServerName <%= node[:fqdn] %> + ServerName gps-tile.openstreetmap.org + ServerAlias *.gps-tile.openstreetmap.org ServerAlias gps.tile.openstreetmap.org ServerAlias gps-*.tile.openstreetmap.org - ServerAlias gps-tile.openstreetmap.org - ServerAlias *.gps-tile.openstreetmap.org ServerAdmin webmaster@openstreetmap.org <% if port == 443 -%> # Enable SSL SSLEngine on + SSLCertificateFile /etc/ssl/certs/gps-tile.openstreetmap.org.pem + SSLCertificateKeyFile /etc/ssl/private/gps-tile.openstreetmap.org.key <% end -%> # Configure location of static files @@ -21,6 +22,9 @@ # Configure the CGI script that serves the tiles ScriptAlias /lines /srv/gps-tile.openstreetmap.org/updater/tile + # Redirect for ACMI challenge validation + RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/ + # Temporary redirect for old CGI location RedirectPermanent /gps-lines/tile /lines