[2/4] httpd: disable sending ETag header completely

Message ID 8698f06c-19c9-1680-f179-4d50c00bed1a@ipfire.org
State Accepted
Commit 59fa881ea7380b5ac5f283892c9c4882de6ff28a
Headers
Series [1/4] httpd: remove compatibility instructions for very old browsers |

Commit Message

Peter Müller April 12, 2021, 9 p.m. UTC
  These cause caching trouble and pose a potential security risk due to
exposing inode numbers of files within the Apache site directories on an
IPFire machine.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
---
 config/httpd/global.conf | 1 +
 1 file changed, 1 insertion(+)
  

Patch

diff --git a/config/httpd/global.conf b/config/httpd/global.conf
index cc8000379..46878baf5 100644
--- a/config/httpd/global.conf
+++ b/config/httpd/global.conf
@@ -8,6 +8,7 @@  Include /etc/httpd/conf/hostname.conf
 HostnameLookups off
 AddHandler cgi-script .cgi
 EnableSendfile Off
+FileETag None
 
 # Always unset HTTP_PROXY variable, https://httpoxy.org
 RequestHeader unset Proxy early