【问题标题】:How to change the type of web server shown如何更改显示的 Web 服务器的类型
【发布时间】:2014-09-11 21:36:34
【问题描述】:

标题不是很准确,所以我会在这里解释一下

在这个页面

http://browserspy.dk/webserver.php

您可以输入任何域,它会显示他们使用的网络服务器

我想知道如何修改我的服务器以在那里显示其他内容 我使用 centos6.4 和 nginx 1.7.2 所以如果有人使用上面的网站来检查我的域而不是“nginx”来显示“堆栈”或其他任何东西

提前谢谢你

【问题讨论】:

标签: nginx


【解决方案1】:
  1. 安装HttpHeadersMoreModule 模块。 - http://wiki.nginx.org/HttpHeadersMoreModule
  2. 设置标题more_set_headers 'Server: my-server';
  3. 重启 Nginx。

【讨论】:

  • 因为我有点菜鸟,你能建议如何设置标题吗?
  • 你用模块编译了吗?
  • 只需将此more_set_headers 'Server: my-server'; 添加到 Nginx 配置中。将my-server 替换为您要显示的名称。
  • 如果它适合您,请将其标记为答案。 :)
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2013-01-01
  • 2015-10-21
  • 2011-03-01
  • 1970-01-01
  • 2015-10-29
  • 1970-01-01
  • 2019-08-07
相关资源
最近更新 更多