Linux学习笔记——隐藏Apache的版本号

编辑Apache的配置文件

vim /etc/httpd/conf/httpd.conf

添加ServerTokens prod这一行
在这里插入图片描述

重启Apache服务
systemctl restart httpd

访问网页,f12查看响应头信息
在这里插入图片描述

posted @ 2020-07-15 09:39  行云博客  阅读(69)  评论(0)    收藏  举报