1 # DO NOT EDIT - This file is being maintained by Chef
3 <% [80, 443].each do |port| -%>
4 <VirtualHost *:<%= port %>>
6 ServerName donate.openstreetmap.org
7 ServerAlias donate.openstreetmap.com
8 ServerAlias donate.openstreetmap.net
9 ServerAlias donate.osm.org
11 ServerAdmin webmaster@openstreetmap.org
14 RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
15 RedirectPermanent / https://donate.openstreetmap.org/
19 SSLCertificateFile /etc/ssl/certs/donate.openstreetmap.org.pem
20 SSLCertificateKeyFile /etc/ssl/private/donate.openstreetmap.org.key
23 CustomLog /var/log/apache2/donate.openstreetmap.org-access.log combined
24 ErrorLog /var/log/apache2/donate.openstreetmap.org-error.log
28 DocumentRoot /srv/donate.openstreetmap.org
30 # Alias Dynamic Content to data folder to avoid serving dummy git content
31 Alias /donors-eur.csv /srv/donate.openstreetmap.org/data/donors-eur.csv
32 Alias /donors.csv /srv/donate.openstreetmap.org/data/donors.csv
34 # Redirect previous compaigns to homepage
35 Redirect permanent /domain https://donate.openstreetmap.org/
36 Redirect permanent /memorial https://donate.openstreetmap.org/
37 Redirect permanent /server2011 https://donate.openstreetmap.org/
38 Redirect permanent /server2013 https://donate.openstreetmap.org/
39 Redirect permanent /server2015 https://donate.openstreetmap.org/
41 <Directory /srv/donate.openstreetmap.org>
44 <FilesMatch ".+\.ph(ar|p|tml)$">
45 SetHandler "proxy:unix:/run/php/donate.openstreetmap.org.sock|fcgi://127.0.0.1"
49 <Directory /srv/donate.openstreetmap.org/scripts>
65 # Enable deflate compression on .csv files if possible
66 <IfModule mod_deflate.c>
67 DeflateCompressionLevel 9
68 AddOutputFilterByType DEFLATE text/csv
71 <IfModule mod_expires.c>
72 ExpiresDefault "access plus 15 minutes"
73 ExpiresByType text/html "access plus 5 minutes"
74 ExpiresByType text/csv "access plus 1 minute"