Lighttpd、Nginx 、Apache 隐藏响应头信息的Server信息和版本信息.docVIP

  • 10
  • 0
  • 约3.49千字
  • 约 4页
  • 2017-08-28 发布于河南
  • 举报

Lighttpd、Nginx 、Apache 隐藏响应头信息的Server信息和版本信息.doc

Lighttpd、Nginx 、Apache 隐藏响应头信息的Server信息和版本信息 隐藏 Apache 版本信息 /etc/apache2/apache2.conf 或 /etc/httpd/conf/httpd.conf ServerTokens ProductOnly ServerSignature Off 重启 apache 现在 http 头里面只看到: Server: Apache ===================== nginx ? #vi nginx.conf 在http 加上 server_tokens off; 如下: http { ……省略配置 sendfile on; tcp_nopush on; keepalive_timeout 65; tcp_nodelay on; server_tokens off;? …….省略配置 } ======================= 隐藏 PHP 版本 php.ini expose_php On 改成 expose_php Off 重启apache后,php版本在http头中隐藏了。 ? === 参考解决方案:? 1. Lighttpd 1.4.20? src/response.c:108 改为: buffer_append_string_len(b, CONST_STR_LEN(Server

文档评论(0)

1亿VIP精品文档

相关文档