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