X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/5fb7a990481702f72801bc430b0f01675af38f94..2fa4b09c609ade8b4c3c2782c22608b8db464784:/cookbooks/donate/templates/default/apache.erb diff --git a/cookbooks/donate/templates/default/apache.erb b/cookbooks/donate/templates/default/apache.erb index 4d6cd5efa..20f00e10c 100644 --- a/cookbooks/donate/templates/default/apache.erb +++ b/cookbooks/donate/templates/default/apache.erb @@ -16,13 +16,16 @@ <% if port == 80 -%> # Redirect to secure site - Redirect permanent / https://donate.openstreetmap.org + Redirect permanent / https://donate.openstreetmap.org/ <% end -%> <% if port == 443 -%> # # Enable SSL # SSLEngine on + SSLCertificateFile /etc/ssl/certs/openstreetmap.pem + SSLCertificateKeyFile /etc/ssl/private/openstreetmap.key + SSLCertificateChainFile /etc/ssl/certs/rapidssl.pem # HSTS (mod_headers is required) Header always set Strict-Transport-Security "max-age=300" @@ -43,6 +46,9 @@ Alias /donors.csv /srv/donate.openstreetmap.org/data/donors.csv # Redirect previous compaigns to homepage + Redirect permanent /domain https://donate.openstreetmap.org/ + Redirect permanent /memorial https://donate.openstreetmap.org/ + Redirect permanent /server2011 https://donate.openstreetmap.org/ Redirect permanent /server2013 https://donate.openstreetmap.org/ Redirect permanent /server2015 https://donate.openstreetmap.org/ @@ -68,8 +74,15 @@ # Enable deflate compression on .csv files if possible + DeflateCompressionLevel 9 AddOutputFilterByType DEFLATE text/csv + + + ExpiresDefault "access plus 15 minutes" + ExpiresByType text/html "access plus 5 minutes" + ExpiresByType text/csv "access plus 1 minute" + <% end -%>