- Posted on
- • Linux
Hardening Apache HTTP Server
- Author
-
-
- User
- user
- Posts by this author
- Posts by this author
-
Remove server version banner The default configuration will expose Apache Version and OS type as shown below.
sudo nano /etc/apache2/apache2.conf
ServerTokens Prod
ServerSignature Off
curl --head https://technicalnode.ddns.net
HTTP/1.0 500 Only GET and POST are supported
Date: Tue, 14 Jul 2026 01:05:48 GMT
Server: Apache
Set-Cookie: PHPSESSID=fq5ah1kg03f0p391lrooi04cpt; path=/; SameSite=strict
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Connection: close
Content-Type: text/html; charset=UTF-8