From: Grant Slater Date: Mon, 22 Jul 2024 14:30:30 +0000 (+0100) Subject: apache: only show major/minor apache version in response header X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/2381006bfe55b37e25482f8f4d569e3da3682206 apache: only show major/minor apache version in response header --- diff --git a/cookbooks/apache/templates/default/httpd.conf.erb b/cookbooks/apache/templates/default/httpd.conf.erb index 3f78187f8..171feaa54 100644 --- a/cookbooks/apache/templates/default/httpd.conf.erb +++ b/cookbooks/apache/templates/default/httpd.conf.erb @@ -6,6 +6,9 @@ Protocols h2 http/1.1 # Set the number of seconds before receives and sends time out Timeout <%= node[:apache][:timeout] %> +# Set only Major and Minor in the Server response header +ServerTokens Minor + # Decide whether or not to allow persistent connections Keepalive <%= node[:apache][:keepalive] ? "On" : "Off" %> <% if node[:apache][:mpm] == "prefork" -%>