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 ProxyFCGISetEnvIf "true" PHP_ADMIN_VALUE "open_basedir=/srv/donate.openstreetmap.org/:/usr/share/php/:/tmp/\ndisable_functions=exec,shell_exec,system,passthru,popen"
32 # Alias Dynamic Content to data folder to avoid serving dummy git content
33 Alias /donors-eur.csv /srv/donate.openstreetmap.org/data/donors-eur.csv
34 Alias /donors.csv /srv/donate.openstreetmap.org/data/donors.csv
36 # Redirect previous compaigns to homepage
37 Redirect permanent /domain https://donate.openstreetmap.org/
38 Redirect permanent /memorial https://donate.openstreetmap.org/
39 Redirect permanent /server2011 https://donate.openstreetmap.org/
40 Redirect permanent /server2013 https://donate.openstreetmap.org/
41 Redirect permanent /server2015 https://donate.openstreetmap.org/
43 <Directory /srv/donate.openstreetmap.org>
47 <Directory /srv/donate.openstreetmap.org/scripts>
63 # Enable deflate compression on .csv files if possible
64 <IfModule mod_deflate.c>
65 DeflateCompressionLevel 9
66 AddOutputFilterByType DEFLATE text/csv
69 <IfModule mod_expires.c>
70 ExpiresDefault "access plus 15 minutes"
71 ExpiresByType text/html "access plus 5 minutes"
72 ExpiresByType text/csv "access plus 1 minute"