Fix historical blog.osm.org file links
authorGrant Slater <git@firefishy.com>
Sat, 25 Feb 2017 22:25:40 +0000 (22:25 +0000)
committerGrant Slater <git@firefishy.com>
Sat, 25 Feb 2017 22:25:40 +0000 (22:25 +0000)
cookbooks/blog/recipes/default.rb
cookbooks/wordpress/templates/default/apache.erb

index 082c34bf929b7ebc4ab481f97dee29cb6aecf514..fd72262883e7c41dd8c5ef5b708a80c58e0ff9da 100644 (file)
@@ -37,8 +37,7 @@ wordpress_site "blog.openstreetmap.org" do
   database_user "osm-blog-user"
   database_password passwords["osm-blog-user"]
   urls "/casts" => "/srv/blog.openstreetmap.org/casts",
-       "/images" => "/srv/blog.openstreetmap.org/images",
-       "/news" => "/srv/blog.openstreetmap.org/news"
+       "/images" => "/srv/blog.openstreetmap.org/images"
 end
 
 wordpress_theme "osmblog-wp-theme" do
index 6281fc2dbb859459cc887430d0ef31e304f375fd..59b63f753b72f0b5562483a506c923e307aaf5d1 100644 (file)
   DocumentRoot <%= @directory %>
 <% @urls.each do |url,directory| -%>
   Alias <%= url %> <%= directory %>
+  <Directory <%= directory %>>
+    AllowOverride None
+    php_admin_flag engine off
+    Require all granted
+  </Directory>
 <% end -%>
 
   php_admin_value open_basedir <%= @directory %>/:/usr/share/php/:/tmp/