From fa362b813ca0ed8c70f1d7a2e4c3d270eb41ceaa Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Fri, 16 Oct 2020 11:15:32 -0700 Subject: [PATCH] More old apache acl cleanups We can rely on Require instead of Order, Allow, Deny, Satisfy since we are all on apache 2.4 now. This simplifies reasoning about acl rules. Change-Id: Idedba1558ccaa1c753d1175e356bf26a8d4b1084 --- .../templates/cacti.vhost.erb | 6 +--- .../templates/status.vhost.erb | 30 ++++--------------- .../templates/survey.vhost.erb | 2 -- 3 files changed, 6 insertions(+), 32 deletions(-) diff --git a/modules/openstack_project/templates/cacti.vhost.erb b/modules/openstack_project/templates/cacti.vhost.erb index cc0664e71c..d2d8e5f791 100644 --- a/modules/openstack_project/templates/cacti.vhost.erb +++ b/modules/openstack_project/templates/cacti.vhost.erb @@ -14,11 +14,7 @@ Options +FollowSymLinks AllowOverride None - order allow,deny - allow from all - = 2.4> - Require all granted - + Require all granted AddType application/x-httpd-php .php diff --git a/modules/openstack_project/templates/status.vhost.erb b/modules/openstack_project/templates/status.vhost.erb index f2effdba9a..087f199cbd 100644 --- a/modules/openstack_project/templates/status.vhost.erb +++ b/modules/openstack_project/templates/status.vhost.erb @@ -15,31 +15,19 @@ NameVirtualHost <%= @vhost_name %>:<%= @port %> Alias /reviews /srv/static/reviewday AllowOverride None - Order allow,deny - allow from all - = 2.4> - Require all granted - + Require all granted Alias /openstack-health /srv/static/openstack-health AllowOverride None - Order allow,deny - allow from all - = 2.4> - Require all granted - + Require all granted > Options <%= @options %> AllowOverride None - Order allow,deny - allow from all - = 2.4> - Require all granted - + Require all granted # Sample elastic-recheck config file, adjust prefixes @@ -48,22 +36,14 @@ NameVirtualHost <%= @vhost_name %>:<%= @port %> Alias /elastic-recheck/data /var/lib/elastic-recheck AllowOverride None - Order allow,deny - allow from all - = 2.4> - Require all granted - + Require all granted RedirectMatch permanent ^/rechecks(.*) /elastic-recheck Alias /elastic-recheck /usr/local/share/elastic-recheck AllowOverride None - Order allow,deny - allow from all - = 2.4> - Require all granted - + Require all granted RedirectMatch temp ^/zuul(.*) https://zuul.opendev.org/t/openstack/status diff --git a/modules/openstack_project/templates/survey.vhost.erb b/modules/openstack_project/templates/survey.vhost.erb index 83885588c6..7fbc44cc35 100644 --- a/modules/openstack_project/templates/survey.vhost.erb +++ b/modules/openstack_project/templates/survey.vhost.erb @@ -19,8 +19,6 @@ > Options <%= @options %> AllowOverride None - Order allow,deny - allow from all Require all granted