foreveryang321 opened a new issue #2268:
URL: https://github.com/apache/apisix-dashboard/issues/2268


   ### Issue description
   
   Configure `response-rewrite` using `Apisix Dashboard` does not take effect.
   
   ### Expected behavior
   
   the response header is `Server: xx/x`, not `Server: APISIX/2.11.0`
   
   ```shell
   yl-mac:apisix yl$ curl http://127.0.0.1 -v -H 'User-Agent: baidu-bot'
   *   Trying 127.0.0.1...
   * TCP_NODELAY set
   * Connected to 127.0.0.1 (127.0.0.1) port 80 (#0)
   > GET / HTTP/1.1
   > Host: 127.0.0.1
   > Accept: */*
   > User-Agent: baidu-bot
   > 
   < HTTP/1.1 403 Forbidden
   < Date: Wed, 29 Dec 2021 01:44:15 GMT
   < Content-Type: text/plain; charset=utf-8
   < Transfer-Encoding: chunked
   < Connection: keep-alive
   < Server: APISIX/2.11.0
   < 
   {"message":"Not allowed"}
   ```
   
   ### How to Reproduce
   
   ignore
   
   ### Screenshots
   
   > Configure `response-rewrite` using `Apisix Dashboard`
   
   - Routing Mode
   
![image](https://user-images.githubusercontent.com/5868190/147620128-82a64bb7-1003-4722-96e9-2230ae6271b0.png)
   
   - Global Mode
   
   
![image](https://user-images.githubusercontent.com/5868190/147620706-8b6b472f-f3c3-48b3-aa9d-3301366ea621.png)
   
   
   > apisix/conf/config.yaml
   
   
![image](https://user-images.githubusercontent.com/5868190/147620109-5466b8c3-5a4f-463a-a9d7-160aa4e09389.png)
   
   
   ### Environment
   
   - apisix version (cmd: `apisix version`): apache/apisix:2.11.0-alpine
   - OS (cmd: `uname -a`): Mac OS X 10.15.7
   - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):  
   nginx version: openresty/1.19.3.2
   built by gcc 9.3.0 (Alpine 9.3.0) 
   built with OpenSSL 1.1.1g  21 Apr 2020
   - etcd version, if have (cmd: run `etcd --version`): etcd Version: 3.5.0
   - apisix-dashboard version, if have: apache/apisix-dashboard:2.10.1-alpine
   - Browser version, if have: Chrome/96
   
   ### Additional context
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to