X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/c249fadcc5ce27698d1f11fe5ec4a1c299786b3c..92fe4a42d003e40c2d7218de7aedbd8128969178:/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 new file mode 100644 index 000000000..af83be7a9 --- /dev/null +++ b/cookbooks/stateofthemap/templates/default/apache.static.erb @@ -0,0 +1,45 @@ +# DO NOT EDIT - This file is being maintained by Chef + + + ServerName <%= @year %>.stateofthemap.org + ServerAlias <%= @year %>.stateofthemap.com + ServerAdmin webmaster@openstreetmap.org + + CustomLog /var/log/apache2/<%= @year %>.stateofthemap.org-access.log combined + ErrorLog /var/log/apache2/<%= @year %>.stateofthemap.org-error.log + + RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/ + RedirectPermanent / https://<%= @year %>.stateofthemap.org/ + + + + ServerName <%= @year %>.stateofthemap.com + ServerAdmin webmaster@openstreetmap.org + + CustomLog /var/log/apache2/<%= @year %>.stateofthemap.org-access.log combined + ErrorLog /var/log/apache2/<%= @year %>.stateofthemap.org-error.log + + SSLEngine on + SSLCertificateFile /etc/ssl/certs/<%= @year %>.stateofthemap.org.pem + SSLCertificateKeyFile /etc/ssl/private/<%= @year %>.stateofthemap.org.key + + RedirectPermanent / https://<%= @year %>.stateofthemap.org/ + + + + ServerName <%= @year %>.stateofthemap.org + ServerAdmin webmaster@openstreetmap.org + + CustomLog /var/log/apache2/<%= @year %>.stateofthemap.org-access.log combined + ErrorLog /var/log/apache2/<%= @year %>.stateofthemap.org-error.log + + SSLEngine on + SSLCertificateFile /etc/ssl/certs/<%= @year %>.stateofthemap.org.pem + SSLCertificateKeyFile /etc/ssl/private/<%= @year %>.stateofthemap.org.key + + DocumentRoot /srv/<%= @year %>.stateofthemap.org + + +.stateofthemap.org> + Require all granted +