Page 1 of 1

CentOS 7: Hide server version httpd

Posted: 2023 May 03, 22:36
by Mihai
Edit configuration file httpd.conf

Code: Select all

[root @ CentOS7]$ vim /etc/httpd/conf/httpd.conf
Add the following configuration

Code: Select all

ServerTokens Prod
ServerSignature Off
Restart httpd service

Code: Select all

[root @ CentOS7]$ systemctl restart httpd