X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/faf8ae12e85eabb050b0f5eceb2cb67ad1de5261..5aa1c0ada526fc73d87e859e09a0a977092ebac3:/cookbooks/mailman/templates/default/apache.erb
diff --git a/cookbooks/mailman/templates/default/apache.erb b/cookbooks/mailman/templates/default/apache.erb
index 396bcd56d..f5d61b17f 100644
--- a/cookbooks/mailman/templates/default/apache.erb
+++ b/cookbooks/mailman/templates/default/apache.erb
@@ -1,10 +1,25 @@
# DO NOT EDIT - This file is being maintained by Chef
+ ServerName <%= @name %>
+ ServerAdmin postmaster@openstreetmap.org
+
+ CustomLog /var/log/apache2/<%= @name %>-access.log combined
+ ErrorLog /var/log/apache2/<%= @name %>-error.log
+
+ RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
+ RedirectPermanent / https://<%= @name %>/
+
+
+
ServerName <%= @name %>
ServerAdmin postmaster@openstreetmap.org
ServerSignature On
+ SSLEngine on
+ SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem
+ SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key
+
CustomLog /var/log/apache2/<%= @name %>-access.log combined
ErrorLog /var/log/apache2/<%= @name %>-error.log
LogLevel warn
@@ -24,6 +39,7 @@
Options Indexes FollowSymLinks
AllowOverride None
+ Require all granted
Alias /pipermail/ /var/lib/mailman/archives/public/
@@ -42,7 +58,7 @@
ScriptAlias /subscribe /usr/lib/cgi-bin/mailman/subscribe
ScriptAlias /mailman/ /usr/lib/cgi-bin/mailman/
-
+
ExpiresActive On
ExpiresDefault "access plus 180 days"