X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/afc3489f2735518178b6338bd0d47e438fbaf36e..6769f06b626d566508eaa96a9892d05aeb331f24:/cookbooks/stateofthemap/templates/default/apache.erb?ds=inline
diff --git a/cookbooks/stateofthemap/templates/default/apache.erb b/cookbooks/stateofthemap/templates/default/apache.erb
index cc9005f9a..7cca3c5a1 100644
--- a/cookbooks/stateofthemap/templates/default/apache.erb
+++ b/cookbooks/stateofthemap/templates/default/apache.erb
@@ -3,25 +3,34 @@
ServerName stateofthemap.org
ServerAlias stateofthemap.com
+ ServerAlias sotm.org
ServerAlias www.stateofthemap.org
ServerAlias www.stateofthemap.com
+ ServerAlias www.sotm.org
ServerAdmin webmaster@openstreetmap.org
CustomLog /var/log/apache2/stateofthemap.org-access.log combined
ErrorLog /var/log/apache2/stateofthemap.org-error.log
+ RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
RedirectPermanent / https://stateofthemap.org/
ServerName stateofthemap.com
+ ServerAlias sotm.org
ServerAlias www.stateofthemap.org
ServerAlias www.stateofthemap.com
+ ServerAlias www.sotm.org
ServerAdmin webmaster@openstreetmap.org
CustomLog /var/log/apache2/stateofthemap.org-access.log combined
ErrorLog /var/log/apache2/stateofthemap.org-error.log
+ SSLEngine on
+ SSLCertificateFile /etc/ssl/certs/stateofthemap.org.pem
+ SSLCertificateKeyFile /etc/ssl/private/stateofthemap.org.key
+
RedirectPermanent / https://stateofthemap.org/
@@ -32,7 +41,16 @@
CustomLog /var/log/apache2/stateofthemap.org-access.log combined
ErrorLog /var/log/apache2/stateofthemap.org-error.log
+ SSLEngine on
+ SSLCertificateFile /etc/ssl/certs/stateofthemap.org.pem
+ SSLCertificateKeyFile /etc/ssl/private/stateofthemap.org.key
+
DocumentRoot /srv/stateofthemap.org/html
+
+ ErrorDocument 404 /404.html
+
+ ExpiresActive On
+ ExpiresDefault "access plus 12 hours"