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: in standalone mode (without etcd), protobuf with import is not loaded HOT 1
- help request: How to synchronize the header configuration of the nginx configuration file to apisix HOT 1
- help request: forward-auth connection timeout HOT 2
- help request: 多个插件组合 HOT 1
- bug: openid-connect: Logout not working using Firefox Version >= 128.0 HOT 4
- help request: docker has a large memory footprint, which varies from machine to machine
- feat: brotli plugin support " Bypass already compressed responses ".
- apisix 外部插件开发 golang 的 go-runner 启了一个服务,如何暴露地址和端口供外部调用 HOT 6
- help request: Using the radixtree.new() method in a similar way has a performance difference of ten times HOT 2
- 编译的可执行程序 go-runner ,放到apisix 中,运行go-runner,居然报错 No such file or directory,可是明明有这个程序啊 HOT 4
- help request: https access apisix ssl error HOT 1
- help request: use yaml anchors and aliases in the config.
- bug: (3.10.0) SSL ENV secret does not work in key value (encrypted field not compatible with secret env engine?)
- apisix go-runner 如何获取请求进来接口的host? 我看 go-runner 源码,貌似没有
- docs: How to Token Exchange (& token split) with Apisix
- help request: failed to check the configuration of plugin multi-auth err: openid-connect plugin is not supported HOT 2
- help request: Does it support stream poxy match with difference host with same apisix port to difference upstream? HOT 3
- help request: Config apisix for subdirectory
- bug: Strings in luajit are infinitely bloated, even if they are not rereferenced in the lua vm HOT 4
- bug: key-auth plugin is not working as expected HOT 3
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.