You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/10/13 16:42:38 UTC
[GitHub] [apisix] chyoong commented on issue #5451: request help: Does response-rewrite plugin support partial or regular substitution
chyoong commented on issue #5451:
URL: https://github.com/apache/apisix/issues/5451#issuecomment-1277897615
@spacewander @kwanhur
Hi, I would also like to use nginx sub_filter in apisix, but it still doesn't work when I use it in apache/apisix:2.99.0-debian
Plugin configļ¼
```json
{
"disable": false,
"filters": [
{
"regex": "head",
"replace": "1212",
"scope": "global"
}
],
"headers": {
"set": {
"x-powered-by": "",
"x-server-balancer_addr": "$balancer_ip:$balancer_port"
}
},
"vars": [
[
"status",
"==",
200
],
[
"content-type",
"==",
"text/html; charset=utf-8"
]
]
}
`
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org