1 # DO NOT EDIT - This file is being maintained by Chef
4 ServerName <%= @name %>
5 <% @aliases.each do |alias_name| -%>
6 ServerAlias <%= alias_name %>
8 ServerAdmin postmaster@openstreetmap.org
10 CustomLog /var/log/apache2/<%= @name %>-access.log combined
11 ErrorLog /var/log/apache2/<%= @name %>-error.log
13 RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
14 RedirectPermanent / https://<%= @name %>/
16 <% unless @aliases.empty? -%>
19 ServerName <%= @aliases.first %>
20 <% @aliases.drop(1).each do |alias_name| -%>
21 ServerAlias <%= alias_name %>
23 ServerAdmin webmaster@openstreetmap.org
26 SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem
27 SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key
29 CustomLog /var/log/apache2/<%= @name %>-access.log combined
30 ErrorLog /var/log/apache2/<%= @name %>-error.log
32 RedirectPermanent / https://<%= @name %>/
37 ServerName <%= @name %>
38 ServerAdmin postmaster@openstreetmap.org
42 SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem
43 SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key
45 CustomLog /var/log/apache2/<%= @name %>-access.log combined
46 ErrorLog /var/log/apache2/<%= @name %>-error.log
51 DocumentRoot <%= @directory %>
55 RewriteCond %{HTTP_REFERER} www\.mailbait\.info
58 RedirectMatch ^/$ /listinfo
59 RedirectMatch ^/cgi-bin/mailman/(.*)$ /$1
61 # Redact list archive entries per request of talk moderators
62 RedirectMatch 451 ^/pipermail/talk/2022-July/(087645|087647)\.html$
64 <Directory /var/lib/mailman/archives/>
65 Options Indexes FollowSymLinks
70 Alias /pipermail/ /var/lib/mailman/archives/public/
71 Alias /images/mailman/ /usr/share/images/mailman/
72 Alias /images/ /usr/share/images/mailman/
74 ScriptAlias /admin /usr/lib/cgi-bin/mailman/admin
75 ScriptAlias /admindb /usr/lib/cgi-bin/mailman/admindb
76 ScriptAlias /confirm /usr/lib/cgi-bin/mailman/confirm
77 ScriptAlias /create /usr/lib/cgi-bin/mailman/create
78 ScriptAlias /edithtml /usr/lib/cgi-bin/mailman/edithtml
79 ScriptAlias /listinfo /usr/lib/cgi-bin/mailman/listinfo
80 ScriptAlias /options /usr/lib/cgi-bin/mailman/options
81 ScriptAlias /private /usr/lib/cgi-bin/mailman/private
82 ScriptAlias /rmlist /usr/lib/cgi-bin/mailman/rmlist
83 ScriptAlias /roster /usr/lib/cgi-bin/mailman/roster
84 ScriptAlias /subscribe /usr/lib/cgi-bin/mailman/subscribe
85 ScriptAlias /mailman/ /usr/lib/cgi-bin/mailman/
87 <Location ~ "/pipermail/([^/]+)/(2004|2005|2006|2007|2008|2009|2010|2011|2012|2013|2014|2015|2016|2017|2018|2019|2020|2021|2022)">
89 ExpiresDefault "access plus 180 days"