Comments (2)
You should probably use the regex_uri
configuration parameter.
Here's a snippet to remove the v1 prefix and leave the rest untouched:
{
"plugins": {
"proxy-rewrite": {
"regex_uri": ["/v1(.*)", "$1"]
}
}
}
from apisix.
Quick update here. It's working now.
I've tried to create a new route using the API and it returned unknown plugin [proxy-rewrite]
, so I added the proxy-rewrite
to the plugin list on my values file and it loaded properly.
It seems the dashboard and the APISIX admin API could use some improvements. The dashboard allows for creating rewrite rules, but the API does not, as the plugin isn't listed in the available plugins.
from apisix.
Related Issues (20)
- bug: grpc-transcode plugin, in Protobuf, when there is a field of type int64, when 'a' is passed in, it is converted to 10. HOT 1
- bug: When I turn on kafka-logger and body-transformer at the same time, the response body conversion of body-transformer plugin will fail. HOT 2
- help request: Request for Assistance: Loki Logging Not Receiving Logs from Specific APIsix Route
- help request: 尝试代理 hdfs 的 webui,但是会返回 302 重定向,应该如何配置呢?或者是否有示例 HOT 1
- apisix will retry the post method? HOT 6
- bug: forward-auth does not return upstream headers to client HOT 1
- bug: http2 requests are not supported without content-length header HOT 2
- How to forward to upstream after successful authentication using the forward-auth plugin HOT 1
- help request: missing user key in JWT token HOT 1
- feat: support env var for secret config of plugins like kafka-logger, elasticsearch-logger HOT 2
- Unable to configure opentelemetry and prometheus plugins in standalone mode
- feat: support AES-256-GCM algorithm to to encrypt and decrypt secret config.
- help request: keeping redis connection alive HOT 5
- bug: 3.9.1的apisix不支持apisix-seed来做服务发现
- help request: worker_events.sock failed (98: Address already in use) HOT 2
- use webflux WebClient build proxy request to apisix-controller ingress ,return 400
- in standalone mode,use conf/apisix.yaml like nginx conf.d HOT 1
- bug: wrong request forwarded to the upstream server HOT 2
- help request: can't hot-reload limit-count HOT 2
- bug: Error: etcdserver: member not found HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apisix.