隐藏Apache版本号

在apache配置文件httpd.conf中,加入以下代码

ServerTokens Prod
ServerSignature Off

隐藏Nginx版本号

在nginx的配置文件nginx.conf 文件里的http内部,加入以下代码

http {
server_tokens off;
}

隐藏PHP版本号

在PHP的配置文件php.ini 文件里找到配置项,expose_php,改为off 

expose_php = Off

改好了之后记得分别重启对应的服务~OK~

 

相关文章:

  • 2021-06-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-22
  • 2021-05-17
  • 2022-12-23
猜你喜欢
  • 2021-08-03
  • 2021-12-18
  • 2022-01-31
  • 2022-12-23
  • 2021-06-18
  • 2022-12-23
相关资源
相似解决方案