]> git.openstreetmap.org Git - chef.git/commitdiff
apache: only show major/minor apache version in response header
authorGrant Slater <github@firefishy.com>
Mon, 22 Jul 2024 14:30:30 +0000 (15:30 +0100)
committerGrant <github@firefishy.com>
Mon, 22 Jul 2024 15:31:00 +0000 (16:31 +0100)
cookbooks/apache/templates/default/httpd.conf.erb

index 3f78187f8b540d37e878184e440b09d138964515..171feaa546adfe67cfc7cd5cbc8a3b56efd1c400 100644 (file)
@@ -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" -%>