CentOS 7: Hide server version httpd
Posted: 2023 May 03, 22:36
Edit configuration file httpd.conf
Add the following configuration
Restart httpd service
Code: Select all
[root @ CentOS7]$ vim /etc/httpd/conf/httpd.conf
Code: Select all
ServerTokens Prod
ServerSignature Off
Code: Select all
[root @ CentOS7]$ systemctl restart httpd