diff --git a/apache2-global.conf b/apache2-global.conf index dae3b8a..06a6785 100644 --- a/apache2-global.conf +++ b/apache2-global.conf @@ -1,6 +1,7 @@ ServerSignature off UseCanonicalName off ServerTokens ProductOnly +TraceEnable off LogLevel warn CustomLog /var/log/apache2/access_log combined diff --git a/apache2-start_apache2 b/apache2-start_apache2 index e302fce..7d7acc3 100644 --- a/apache2-start_apache2 +++ b/apache2-start_apache2 @@ -141,6 +141,10 @@ fi if [ -n "$APACHE_SERVERTOKENS" ]; then echo "ServerTokens $APACHE_SERVERTOKENS" >> ${sysconfd_dir}/global.conf fi +# APACHE_TACEENABLE -> global.conf +if [ -n "$APACHE_TRACEENABLE" ]; then + echo "TraceEnable $APACHE_TRACEENABLE" >> ${sysconfd_dir}/global.conf +fi # APACHE_EXTENDED_STATUS -> global.conf if [ -n "$APACHE_EXTENDED_STATUS" ]; then if [ "$APACHE_EXTENDED_STATUS" == "lua" ]; then diff --git a/apache2.changes b/apache2.changes index a6a0c9f..1b893de 100644 --- a/apache2.changes +++ b/apache2.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Mon Aug 2 17:32:18 UTC 2021 - pgajdos@suse.com + +- introduce APACHE_TACEENABLE sysconfig variable, which translates + to /etc/apache2/sysconfig.d/global.conf:TraceEnable on/off +- modified sources + % apache2-global.conf + % apache2-start_apache2 + % sysconfig.apache2 + ------------------------------------------------------------------- Wed Jun 2 07:31:14 UTC 2021 - pgajdos@suse.com diff --git a/apache2.spec b/apache2.spec index e0a0fe2..bdb0e6e 100644 --- a/apache2.spec +++ b/apache2.spec @@ -1,5 +1,5 @@ # -# spec file for package apache2%{psuffix} +# spec file # # Copyright (c) 2021 SUSE LLC # diff --git a/sysconfig.apache2 b/sysconfig.apache2 index 13eb14f..e50d644 100644 --- a/sysconfig.apache2 +++ b/sysconfig.apache2 @@ -241,6 +241,14 @@ APACHE_USE_CANONICAL_NAME="off" # APACHE_SERVERTOKENS="ProductOnly" +## Type: list(on,off) +## Default: "off" +## ServiceReload: apache2 +# +# Enable or disable TRACE method. +# +APACHE_TRACEENABLE="off" + ## Type: list(on,off,lua) ## Default: "off" ## ServiceReload: apache2