X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/67c2aceb91955ff583c41807759d203a4478e4b1..8ebf04e94873f051db9c3f12c1a8a91155604ac0:/cookbooks/foundation/templates/default/apache.owg.erb diff --git a/cookbooks/foundation/templates/default/apache.owg.erb b/cookbooks/foundation/templates/default/apache.owg.erb index 1cb0fe44c..1e40674c6 100644 --- a/cookbooks/foundation/templates/default/apache.owg.erb +++ b/cookbooks/foundation/templates/default/apache.owg.erb @@ -1,25 +1,28 @@ # DO NOT EDIT - This file is being maintained by Chef - + ServerName <%= @name %> ServerAdmin webmaster@openstreetmap.org CustomLog /var/log/apache2/<%= @name %>-access.log combined ErrorLog /var/log/apache2/<%= @name %>-error.log - Redirect permanent / https://<%= @name %>/ + SSLEngine on + SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem + SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key + + DocumentRoot <%= @directory %> - + ServerName <%= @name %> ServerAdmin webmaster@openstreetmap.org CustomLog /var/log/apache2/<%= @name %>-access.log combined ErrorLog /var/log/apache2/<%= @name %>-error.log - DocumentRoot <%= @directory %> - - SSLEngine on + RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/ + RedirectPermanent / https://<%= @name %>/ >