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
10 ServerAlias donate.osm.org.za
11 ServerAlias donate.openstreetmap.org.za
12 ServerAlias donate.openstreetmap.org.uk
13 ServerAlias donate.openstreetmap.co.uk
15 ServerAdmin webmaster@openstreetmap.org
18 # Redirect to secure site
19 Redirect permanent / https://donate.openstreetmap.org/
26 SSLCertificateFile /etc/ssl/certs/openstreetmap.pem
27 SSLCertificateKeyFile /etc/ssl/private/openstreetmap.key
28 SSLCertificateChainFile /etc/ssl/certs/rapidssl.pem
30 # HSTS (mod_headers is required)
31 Header always set Strict-Transport-Security "max-age=300"
34 CustomLog /var/log/apache2/donate.openstreetmap.org-access.log combined
35 ErrorLog /var/log/apache2/donate.openstreetmap.org-error.log
39 DocumentRoot /srv/donate.openstreetmap.org
41 php_admin_value open_basedir /srv/donate.openstreetmap.org/:/usr/share/php/:/tmp/
42 php_admin_value disable_functions "exec,shell_exec,system,passthru,popen,proc_open"
44 # Alias Dynamic Content to data folder to avoid serving dummy git content
45 Alias /donors-eur.csv /srv/donate.openstreetmap.org/data/donors-eur.csv
46 Alias /donors.csv /srv/donate.openstreetmap.org/data/donors.csv
48 # Redirect previous compaigns to homepage
49 Redirect permanent /domain https://donate.openstreetmap.org/
50 Redirect permanent /memorial https://donate.openstreetmap.org/
51 Redirect permanent /server2011 https://donate.openstreetmap.org/
52 Redirect permanent /server2013 https://donate.openstreetmap.org/
53 Redirect permanent /server2015 https://donate.openstreetmap.org/
55 <Directory /srv/donate.openstreetmap.org>
59 <Directory /srv/donate.openstreetmap.org/scripts>
75 # Enable deflate compression on .csv files if possible
76 <IfModule mod_deflate.c>
77 AddOutputFilterByType DEFLATE text/csv
80 <IfModule mod_expires.c>
81 ExpiresDefault "access plus 15 minutes"
82 ExpiresByType text/html "access plus 5 minutes"
83 ExpiresByType text/csv "access plus 1 minute"