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 <Directory /var/lib/mailman/archives/>
62 Options Indexes FollowSymLinks
67 Alias /pipermail/ /var/lib/mailman/archives/public/
68 Alias /images/ /usr/share/images/mailman/
70 ScriptAlias /admin /usr/lib/cgi-bin/mailman/admin
71 ScriptAlias /admindb /usr/lib/cgi-bin/mailman/admindb
72 ScriptAlias /confirm /usr/lib/cgi-bin/mailman/confirm
73 ScriptAlias /create /usr/lib/cgi-bin/mailman/create
74 ScriptAlias /edithtml /usr/lib/cgi-bin/mailman/edithtml
75 ScriptAlias /listinfo /usr/lib/cgi-bin/mailman/listinfo
76 ScriptAlias /options /usr/lib/cgi-bin/mailman/options
77 ScriptAlias /private /usr/lib/cgi-bin/mailman/private
78 ScriptAlias /rmlist /usr/lib/cgi-bin/mailman/rmlist
79 ScriptAlias /roster /usr/lib/cgi-bin/mailman/roster
80 ScriptAlias /subscribe /usr/lib/cgi-bin/mailman/subscribe
81 ScriptAlias /mailman/ /usr/lib/cgi-bin/mailman/
83 <Location ~ "/pipermail/([^/]+)/(2004|2005|2006|2007|2008|2009|2010|2011|2012|2013|2014|2015|2016|2017)">
85 ExpiresDefault "access plus 180 days"