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
27 # HSTS (mod_headers is required)
28 Header always set Strict-Transport-Security "max-age=300"
31 CustomLog /var/log/apache2/donate.openstreetmap.org-access.log combined
32 ErrorLog /var/log/apache2/donate.openstreetmap.org-error.log
36 DocumentRoot /srv/donate.openstreetmap.org
38 php_admin_value open_basedir /srv/donate.openstreetmap.org/:/usr/share/php/:/tmp/
39 php_admin_value disable_functions "exec,shell_exec,system,passthru,popen,proc_open"
41 # Alias Dynamic Content to data folder to avoid serving dummy git content
42 Alias /donors-eur.csv /srv/donate.openstreetmap.org/data/donors-eur.csv
43 Alias /donors.csv /srv/donate.openstreetmap.org/data/donors.csv
45 # Redirect previous compaigns to homepage
46 Redirect permanent /domain https://donate.openstreetmap.org/
47 Redirect permanent /memorial https://donate.openstreetmap.org/
48 Redirect permanent /server2011 https://donate.openstreetmap.org/
49 Redirect permanent /server2013 https://donate.openstreetmap.org/
50 Redirect permanent /server2015 https://donate.openstreetmap.org/
52 <Directory /srv/donate.openstreetmap.org>
56 <Directory /srv/donate.openstreetmap.org/scripts>
72 # Enable deflate compression on .csv files if possible
73 <IfModule mod_deflate.c>
74 AddOutputFilterByType DEFLATE text/csv