donate: add missing redirects
authorGrant Slater <git@firefishy.com>
Wed, 21 Sep 2016 22:04:30 +0000 (23:04 +0100)
committerGrant Slater <git@firefishy.com>
Wed, 21 Sep 2016 22:04:30 +0000 (23:04 +0100)
cookbooks/donate/recipes/default.rb
cookbooks/donate/templates/default/apache.erb

index c5ab30e..66a1123 100644 (file)
@@ -51,6 +51,12 @@ mysql_database "donate" do
   permissions "donate@localhost" => :all
 end
 
+directory "/srv/donate.openstreetmap.org" do
+  owner "donate"
+  group "donate"
+  mode 0o755
+end
+
 git "/srv/donate.openstreetmap.org" do
   action :sync
   repository "git://github.com/osmfoundation/donation-drive.git"
index 4d6cd5e..df3a98b 100644 (file)
@@ -43,6 +43,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/