]> git.openstreetmap.org Git - chef.git/blob - cookbooks/mailman/templates/default/apache.erb
Bring mailman backup script under chef control
[chef.git] / cookbooks / mailman / templates / default / apache.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 <VirtualHost *:80>
4         ServerName <%= @name %>
5         ServerAdmin postmaster@openstreetmap.org
6         ServerSignature On
7
8         CustomLog /var/log/apache2/<%= @name %>-access.log combined
9         ErrorLog /var/log/apache2/<%= @name %>-error.log
10         LogLevel warn
11
12         AddDefaultCharset off
13
14         DocumentRoot <%= @directory %>
15
16         RewriteEngine on
17
18         RewriteCond %{HTTP_REFERER} www\.mailbait\.info
19         RewriteRule . - [F,L]
20
21         RedirectMatch ^/$ /listinfo
22         RedirectMatch ^/cgi-bin/mailman/(.*)$ /$1
23
24         <Directory /var/lib/mailman/archives/>
25                 Options Indexes FollowSymLinks
26                 AllowOverride None
27         </Directory>
28
29         Alias /pipermail/ /var/lib/mailman/archives/public/
30         Alias /images/ /usr/share/images/mailman/
31
32         ScriptAlias /admin /usr/lib/cgi-bin/mailman/admin
33         ScriptAlias /admindb /usr/lib/cgi-bin/mailman/admindb
34         ScriptAlias /confirm /usr/lib/cgi-bin/mailman/confirm
35         ScriptAlias /create /usr/lib/cgi-bin/mailman/create
36         ScriptAlias /edithtml /usr/lib/cgi-bin/mailman/edithtml
37         ScriptAlias /listinfo /usr/lib/cgi-bin/mailman/listinfo
38         ScriptAlias /options /usr/lib/cgi-bin/mailman/options
39         ScriptAlias /private /usr/lib/cgi-bin/mailman/private
40         ScriptAlias /rmlist /usr/lib/cgi-bin/mailman/rmlist
41         ScriptAlias /roster /usr/lib/cgi-bin/mailman/roster
42         ScriptAlias /subscribe /usr/lib/cgi-bin/mailman/subscribe
43         ScriptAlias /mailman/ /usr/lib/cgi-bin/mailman/
44
45         <Location ~ "/pipermail/([^/]+)/(2004|2005|2006|2007|2008|2009)">
46                 ExpiresActive On
47                 ExpiresDefault "access plus 180 days"
48         </Location>
49 </VirtualHost>