方式如下:
在nginx.conf中的http下加入两行代码即可:
server_tokens off;
proxy_hide_header X-Application-Context;
同理,如果需要不展示其他的响应头属性,添加proxy_hide_header即可。
方式如下:
在nginx.conf中的http下加入两行代码即可:
server_tokens off;
proxy_hide_header X-Application-Context;
同理,如果需要不展示其他的响应头属性,添加proxy_hide_header即可。