From 3d2cb879b09e7ecd22a665b7e55446c3765c1e42 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Thu, 14 Jul 2016 08:36:14 +0200 Subject: [PATCH] actually use the new setting for custom directory options file content, refs #1638 Signed-off-by: Michael Kaufmann (d00p) --- .../jobs/cron_tasks.inc.http.10.apache.php | 24 +++++++++++++------ 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/scripts/jobs/cron_tasks.inc.http.10.apache.php b/scripts/jobs/cron_tasks.inc.http.10.apache.php index bc1e5b13..0d45d0d1 100644 --- a/scripts/jobs/cron_tasks.inc.http.10.apache.php +++ b/scripts/jobs/cron_tasks.inc.http.10.apache.php @@ -81,13 +81,23 @@ class apache extends HttpConfigBase { } $this->virtualhosts_data[$vhosts_filename].= ' ' . "\n"; - // >=apache-2.4 enabled? - if (Settings::Get('system.apache24') == '1') { - $this->virtualhosts_data[$vhosts_filename].= ' Require all granted' . "\n"; - $this->virtualhosts_data[$vhosts_filename].= ' AllowOverride All' . "\n"; - } else { - $this->virtualhosts_data[$vhosts_filename].= ' Order allow,deny' . "\n"; - $this->virtualhosts_data[$vhosts_filename].= ' allow from all' . "\n"; + + // check for custom values, see #1638 + $custom_opts = Settings::Get('system.apacheglobaldiropt'); + if (!empty($custom_opts)) + { + $this->virtualhosts_data[$vhosts_filename].= $custom_opts; + } + else + { + // >=apache-2.4 enabled? + if (Settings::Get('system.apache24') == '1') { + $this->virtualhosts_data[$vhosts_filename].= ' Require all granted' . "\n"; + $this->virtualhosts_data[$vhosts_filename].= ' AllowOverride All' . "\n"; + } else { + $this->virtualhosts_data[$vhosts_filename].= ' Order allow,deny' . "\n"; + $this->virtualhosts_data[$vhosts_filename].= ' allow from all' . "\n"; + } } $this->virtualhosts_data[$vhosts_filename].= ' ' . "\n"; }