Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经在我的 Windows7 机器上安装了 Wamp 服务器
我有一个运行良好的 CS-Cart 网站。我唯一的问题是 Wamp Server 以大粗体白色字体显示一些“服务器配置”信息(Apache 版本、PHP 版本、加载的扩展......),这完全弄乱了我的模板。
我怎样才能“隐藏”(禁用)显示此信息?
我已经搜索了va位并将 ServerSignature设置为Off,但没有运气......
您需要设置ServerTokens指令。将其更改为“Prod”将关闭所有内容,但您正在使用 Apache。
ServerTokens
使用文本编辑器打开 httpd.conf 文件并添加 /modify 指令,如下所示:
ServerSignature Off ServerTokens Prod
使用文本编辑器打开 php.ini 文件并修改包含“expose_php = On”的行并将其设置为 Off:
expose_php = Off