From 4665d7113c338f7f2b3c56d496257f7c2c8912d9 Mon Sep 17 00:00:00 2001 From: Walter Huf Date: Tue, 23 Sep 2014 15:18:54 -0500 Subject: [PATCH] Renders a different vhost config for Apache 2.4 --- .kitchen.yml | 3 +++ templates/default/rgw.conf.erb | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.kitchen.yml b/.kitchen.yml index ee21cc1..ae7e508 100644 --- a/.kitchen.yml +++ b/.kitchen.yml @@ -11,6 +11,9 @@ platforms: - name: ubuntu-14.04 run_list: - recipe[apt] + attributes: + apache: + mpm: event # ugly workaround for onehealth-cookbooks/apache2 #236 - name: debian-7.4 run_list: - recipe[apt] diff --git a/templates/default/rgw.conf.erb b/templates/default/rgw.conf.erb index 322fb01..0916868 100644 --- a/templates/default/rgw.conf.erb +++ b/templates/default/rgw.conf.erb @@ -25,9 +25,13 @@ LogFormat "%{X-Forwarded-For}i %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{Use Options +ExecCGI AllowOverride All SetHandler fastcgi-script + AuthBasicAuthoritative Off + <%- if node[:apache][:version].to_f < 2.4 %> Order allow,deny Allow from all - AuthBasicAuthoritative Off + <%- else %> + Require all granted + <%- end %> -- 2.47.3