1、404页面轻易暴露apache版本信息
curl -I 192.168.150.34/12.html

2、找到apache配置文件/etc/httpd/conf/httpd.conf

3、在httpd.conf中找到
ServerTokens Full
ServerSignature On

4、改成
ServerTokens Prod
ServerSignature off

5、重启apache服务
service httpd restart

6、访问404错误页面,apache的版本信息已经隐藏起来了
