1.   编辑apache的配置文件

[root@on0926 conf]# vim /etc/httpd/conf/httpd.conf
  1. 找到ServerTokens Full 以及ServerSignature On

修改成ServerTokens Prod

``     \ ``ServerSignature off

然后保存

3.重启apache

[root@on0926 conf]# service httpd restart

    Stopping httpd:                                            [  OK  ]

    Starting httpd:                                            [  OK  ]

    [root@on0926 conf]#