X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/92fe4a42d003e40c2d7218de7aedbd8128969178..3a55f93736b4fce4cf3702f51fc4f462723b7ac6:/cookbooks/stateofthemap/templates/default/apache.static.erb diff --git a/cookbooks/stateofthemap/templates/default/apache.static.erb b/cookbooks/stateofthemap/templates/default/apache.static.erb index af83be7a9..07ec18cbe 100644 --- a/cookbooks/stateofthemap/templates/default/apache.static.erb +++ b/cookbooks/stateofthemap/templates/default/apache.static.erb @@ -2,7 +2,7 @@ ServerName <%= @year %>.stateofthemap.org - ServerAlias <%= @year %>.stateofthemap.com + ServerAlias <%= @year %>.stateofthemap.com <%= @year %>.sotm.org ServerAdmin webmaster@openstreetmap.org CustomLog /var/log/apache2/<%= @year %>.stateofthemap.org-access.log combined @@ -14,6 +14,7 @@ ServerName <%= @year %>.stateofthemap.com + ServerAlias <%= @year %>.sotm.org ServerAdmin webmaster@openstreetmap.org CustomLog /var/log/apache2/<%= @year %>.stateofthemap.org-access.log combined @@ -38,6 +39,11 @@ SSLCertificateKeyFile /etc/ssl/private/<%= @year %>.stateofthemap.org.key DocumentRoot /srv/<%= @year %>.stateofthemap.org + + ErrorDocument 404 /404.html + + ExpiresActive On + ExpiresDefault "access plus 7 days" .stateofthemap.org>