Get rid of the last traces of old style apache auth directives
authorTom Hughes <tom@compton.nu>
Fri, 6 May 2016 21:17:18 +0000 (22:17 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 6 May 2016 21:17:18 +0000 (22:17 +0100)
cookbooks/apache/templates/default/info.conf.erb
cookbooks/apache/templates/default/status.conf.erb
cookbooks/planet/templates/default/apache.erb
cookbooks/stats/templates/default/apache.erb
cookbooks/tile/templates/default/apache.erb
cookbooks/web/templates/default/apache.frontend.erb

index fd3fb8e6f7e594ff693b42d7ae6fe08d8660a7d5..f983b9991da32f96eafd5f56268e1095f590333a 100644 (file)
@@ -4,16 +4,14 @@
 
 <Location /server-info>
     SetHandler server-info
-    Order deny,allow
-    Deny from all
 <% node.ipaddresses do |address| -%>
-    Allow from <%= address %>
+    Require ip <%= address %>
 <% end -%>
-    Allow from 127.0.1.1
-    Allow from 127.0.0.1
-    Allow from ::1
+    Require ip 127.0.1.1
+    Require ip 127.0.0.1
+    Require ip ::1
 <% @hosts.each do |host| -%>
-    Allow from <%= host %>
+    Require ip <%= host %>
 <% end -%>
 </Location>
 
index 25cda1a25651961ae59bc9bad6e7cfd83281094a..6b8b98ee7f8e19b13b2f6cab289ae46fd2a665b9 100644 (file)
@@ -6,16 +6,14 @@ ExtendedStatus On
 
 <Location /server-status>
     SetHandler server-status
-    Order deny,allow
-    Deny from all
 <% node.ipaddresses do |address| -%>
-    Allow from <%= address %>
+    Require ip <%= address %>
 <% end -%>
-    Allow from 127.0.1.1
-    Allow from 127.0.0.1
-    Allow from ::1
+    Require ip 127.0.1.1
+    Require ip 127.0.0.1
+    Require ip ::1
 <% @hosts.each do |host| -%>
-    Allow from <%= host %>
+    Require ip <%= host %>
 <% end -%>
 </Location>
 
index dddd5de9fdfe55bdbc1bf985263e5eeda39ea4c0..4528f46fef8ace583339f0ea9e5bf7c2b4001466 100644 (file)
@@ -30,8 +30,7 @@
         ProxyPass /replication/streaming http://127.0.0.1:8080
 
         <Location /replication/steaming>
-                Order deny,allow
-                Allow from all
+                Require all granted
         </Location>
 
         Redirect /pbf-experimental/    /pbf/
index 328b89b784f83e46d54e43237639331343e1917e..d6e1470574ef628b52c8b8991830b5d10204f216 100644 (file)
 <Directory /var/lib/awstats>
        Options None
        AllowOverride None
-       Order allow,deny
-       Allow from all
+       Require all granted
 </Directory>
 
 <Directory /usr/share/awstats/icon>
        Options None
        AllowOverride None
-       Order allow,deny
-       Allow from all
+       Require all granted
 </Directory>
index 24b87902bca4ca8845e64767fe71186d2454c388..66d9dd83709253b541e0ba9e0907b329b2ce2a62 100644 (file)
 <Directory /srv/tile.openstreetmap.org/html>
   Options None
   AllowOverride None
-<% if node[:lsb][:release].to_f >= 14.04 -%>
   Require all granted
-<% else -%>
-  Order allow,deny
-  Allow from all
-<% end -%>
 </Directory>
 
 <Directory /srv/tile.openstreetmap.org/cgi-bin>
   Options ExecCGI
   AllowOverride None
-<% if node[:lsb][:release].to_f >= 14.04 -%>
   Require all granted
-<% else -%>
-  Order allow,deny
-  Allow from all
-<% end -%>
 </Directory>
index 5c149872e9f63c8097fc6d1ce97cba59184c6a33..b4714c1372abfeabbd36a84bcfc2d2ae39466e50 100644 (file)
   # Allow all proxy requests
   #
   <Proxy *>
-    Allow from all
+    Require all granted
   </Proxy>
 
   #