我在一个站点上阅读过,我需要在httpd.conf
文件中添加两行:
服务器签名关闭
ServerTokens产品
但是,当我添加它们时,什么都没有改变。如前所述,我可以在浏览器中看到
Apache / 2.2.16(Debian)
也许这很重要:当我打开文件时(我的意思是在添加上述行之前),httpd.conf
我看到它是空的。我使用VPS。
谢谢!
最佳答案
您没有提供有关操作系统/发行版等的足够信息
但是在ubuntu的apache安装中,apache2.conf看起来像这样:
<cut>
Include httpd.conf
Include ports.conf
Include conf.d/
Include sites-enabled/
在conf.d / security中,您可以看到
ServerTokens OS
只需检查您的配置,在您的httpd.conf中进行设置后它就会被覆盖
关于apache - Apache:如何向用户隐藏服务器版本和操作系统?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9000853/