apache在默認40四、403提示頁面中隱藏apache版本和系統信息

在window服務器上用wamp搭建完環境後,輸入IP地址,出現Forbiddenlinux

You don't have permission to access / onthis server.apache

Apache/2.4.23 (Win64) PHP/5.6.25 Server at123.207.226.239 Port 80服務器

錯誤。this

要隱藏紅色部分的apache版本號和系統信息,在apache配置文件中(linux系統中是httpd.conf),找到以下兩行:code

ServerSignature On
ServerTokens Full

改成server

ServerSignature Off
ServerTokens Prod
相關文章
相關標籤/搜索