alibaba / tengine

A distribution of Nginx with some advanced features
https://tengine.taobao.org
BSD 2-Clause "Simplified" License
12.65k stars 2.52k forks source link

修改源码隐藏headers 中server 信息,403报错中没有隐藏。其他请求中隐藏了 #1936

Open heshc opened 1 month ago

heshc commented 1 month ago

./nginx -V image

curl 如图 image

403如图 image

其中 http/ngx_http_header_filter_module.c 中修改 image core/nginx.h中修改 image

这个403 中 response headers 的server是别的地方处理的吗?

Tengine version 3.1.0

Ⅴ. Anything else we need to know?

  1. If applicable, add nginx debug log doc.

Ⅵ. Environment: