how to hide the server name for APISIX on the response header #8011
Replies: 7 comments 5 replies
-
See https://github.com/apache/apisix/blob/master/conf/config-default.yaml#L45 |
Beta Was this translation helpful? Give feedback.
-
您好,
enable_server_tokens: true # Whether the APISIX version number should be shown in Server header.
这个参数能关闭 版本号,但我还想隐藏APISIX标识,请问怎么修改?
…------------------ 原始邮件 ------------------
发件人: "apache/apisix" ***@***.***>;
发送时间: 2022年9月28日(星期三) 下午5:46
***@***.***>;
***@***.******@***.***>;
主题: Re: [apache/apisix] how to hide the server name for APISIX on the response header (Discussion #8011)
See https://github.com/apache/apisix/blob/master/conf/config-default.yaml#L45
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
您好,
请问源代码修改APISIX标识,需要修改哪几个参数?谢谢!
…------------------ 原始邮件 ------------------
发件人: "apache/apisix" ***@***.***>;
发送时间: 2022年10月8日(星期六) 下午2:39
***@***.***>;
***@***.******@***.***>;
主题: Re: [apache/apisix] how to hide the server name for APISIX on the response header (Discussion #8011)
Only by modifying the source code, ref: https://github.com/apache/apisix/blob/61afafdd46fe40c03955b6cb058df3e6fad5db45/apisix/init.lua#L641
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
您好,
您提供这个解决方案比重装编译apisix更加简单,我只想将响应头的Server: APISIX改成Server: APP或者删除 Server: APISIX标识,如何编写response-rewrite plugin 配置文件? 我看了帮助文档(https://apisix.apache.org/zh/docs/apisix/plugins/response-rewrite),始终还是没看明白语法怎么编写。
感谢!
…------------------ 原始邮件 ------------------
发件人: "apache/apisix" ***@***.***>;
发送时间: 2022年10月8日(星期六) 晚上7:56
***@***.***>;
***@***.******@***.***>;
主题: Re: [apache/apisix] how to hide the server name for APISIX on the response header (Discussion #8011)
Why not just use the response-rewrite plugin to rewrite the Server header?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
APISIX标识可以隐藏了,感谢您的建议。
…------------------ 原始邮件 ------------------
发件人: "apache/apisix" ***@***.***>;
发送时间: 2022年10月9日(星期天) 上午9:52
***@***.***>;
***@***.******@***.***>;
主题: Re: [apache/apisix] how to hide the server name for APISIX on the response header (Discussion #8011)
Then you need to learn from the getting-started and the core concepts, before you actually configure this plugin.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
one can edit the value for Below is the example for standalone mode yaml configuration:
If someone using the admin:
|
Beta Was this translation helpful? Give feedback.
-
apisix set response header
I tried to re-set
|
Beta Was this translation helpful? Give feedback.
-
hello !
I have already hide the APISIX version on my APISIX server. we need to hide the server name for APISIX on the response header too .please advise how to do this. thanks!
Beta Was this translation helpful? Give feedback.
All reactions