0
点赞
收藏
分享

微信扫一扫

Apache不显示版本信息和系统信息

Brose 2022-04-14 阅读 26

Apache不显示版本信息和系统信息

[root@server01 httpd]# curl -i https://www.sdskills.com
HTTP/1.1 200 OK
Date: Thu, 14 Apr 2022 00:46:06 GMT
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips
Last-Modified: Wed, 13 Apr 2022 17:38:21 GMT
ETag: "2e-5dc8ca4c9259b"
Accept-Ranges: bytes
Content-Length: 46
Content-Type: text/html; charset=UTF-8

This is the front page of sdskills's website.
[root@server01 httpd]# vim /etc/httpd/conf/httpd.conf 
#在最后加入
	ServerTokens prod
	ServerSignature Off
[root@server01 httpd]# systemctl restart httpd
[root@server01 httpd]# curl -i https://www.sdskills.com
HTTP/1.1 200 OK
Date: Thu, 14 Apr 2022 00:47:35 GMT
Server: Apache
Last-Modified: Wed, 13 Apr 2022 17:38:21 GMT
ETag: "2e-5dc8ca4c9259b"
Accept-Ranges: bytes
Content-Length: 46
Content-Type: text/html; charset=UTF-8

This is the front page of sdskills's website.
[root@server01 httpd]# 

举报

相关推荐

0 条评论