apache:restrict_apache_information_leakage
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
apache:restrict_apache_information_leakage [2016/07/12 14:10] – created peter | apache:restrict_apache_information_leakage [2023/07/17 11:14] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Apache - Restrict Apache Information Leakage ====== | ||
- | Edit the Apache2 configuration security file: | ||
- | |||
- | <code bash> | ||
- | sudo vi / | ||
- | </ | ||
- | |||
- | Add or edit the following lines and save: | ||
- | |||
- | <file bash / | ||
- | ServerTokens Prod | ||
- | ServerSignature Off | ||
- | TraceEnable Off | ||
- | Header unset ETag | ||
- | Header always unset X-Powered-By | ||
- | FileETag None | ||
- | </ | ||
- | |||
- | Restart Apache server. | ||
- | |||
- | <code bash> | ||
- | sudo service apache2 restart | ||
- | </ |
apache/restrict_apache_information_leakage.1468332652.txt.gz · Last modified: 2020/07/15 09:30 (external edit)