我在一个网站上看到我需要添加两行httpd.conf文件:
ServerSignature关闭
ServerTokens Prod
但是当我添加它们时没有任何改变.如前所述,我可以在浏览器中看到
Apache/2.2.16(Debian)
也许这很重要:当我打开文件时(我的意思是在添加上面的行之前)httpd.conf我看到它是空的.我用VPS.
谢谢!
Sha*_*han 23
简单,
sudo nano /etc/apache2/conf-enabled/security.conf
Run Code Online (Sandbox Code Playgroud)
更改ServerTokens OS为ServerTokens Prod
然后更改ServerSignature On为ServerSignature Off
重启apache2:
sudo service apache2 restart
Run Code Online (Sandbox Code Playgroud)
本文也将帮助您隐藏Apache信息
jac*_*doe 17
你没有提供有关操作系统/分销等的足够信息
但是在ubuntu的apache安装中,apache2.conf看起来像这样:
<cut>
Include httpd.conf
Include ports.conf
Include conf.d/
Include sites-enabled/
Run Code Online (Sandbox Code Playgroud)
在conf.d/security中你可以看到
ServerTokens OS
Run Code Online (Sandbox Code Playgroud)
只需检查一下你的配置,在你的httpd.conf中设置后它会被覆盖
| 归档时间: |
|
| 查看次数: |
35392 次 |
| 最近记录: |