You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "qyk1995 (via GitHub)" <gi...@apache.org> on 2023/08/21 09:40:56 UTC
[GitHub] [apisix] qyk1995 opened a new issue, #10067: help request: How to forward the parameter of http://a.com/api/v1/admin/casbinPolicyList?sub=user to http://b.com/api/v1/admin/casbinPolicyList?sub=use?
qyk1995 opened a new issue, #10067:
URL: https://github.com/apache/apisix/issues/10067
### Description
How to forward the parameter of http://a.com/api/v1/admin/casbinPolicyList?sub=user to http://b.com/api/v1/admin/casbinPolicyList?sub=use?

### Environment
- APISIX version (run `apisix version`): apache/apisix:3.2.0-debian
- Operating system (run `uname -a`): 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
- OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
- etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`): docker.io/bitnami/etcd:3.5.7-debian-11-r14
- APISIX Dashboard version, if relevant: apache/apisix-dashboard:3.0.0-alpine
- Plugin runner version, for issues related to plugin runners:
- LuaRocks version, for installation issues (run `luarocks --version`):
--
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.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] Revolyssup commented on issue #10067: help request: How to forward the parameter of http://a.com/api/v1/admin/casbinPolicyList?sub=user to http://b.com/api/v1/admin/casbinPolicyList?sub=use?
Posted by "Revolyssup (via GitHub)" <gi...@apache.org>.
Revolyssup commented on issue #10067:
URL: https://github.com/apache/apisix/issues/10067#issuecomment-1686541869
@qyk1995 You can use redirect plugin with regex_uri to extract the parameters and then pass them onto a different URI
--
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
[GitHub] [apisix] qyk1995 closed issue #10067: help request: How to forward the parameter of http://a.com/api/v1/admin/casbinPolicyList?sub=user to http://b.com/api/v1/admin/casbinPolicyList?sub=use?
Posted by "qyk1995 (via GitHub)" <gi...@apache.org>.
qyk1995 closed issue #10067: help request: How to forward the parameter of http://a.com/api/v1/admin/casbinPolicyList?sub=user to http://b.com/api/v1/admin/casbinPolicyList?sub=use?
URL: https://github.com/apache/apisix/issues/10067
--
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
[GitHub] [apisix] Revolyssup commented on issue #10067: help request: How to forward the parameter of http://a.com/api/v1/admin/casbinPolicyList?sub=user to http://b.com/api/v1/admin/casbinPolicyList?sub=use?
Posted by "Revolyssup (via GitHub)" <gi...@apache.org>.
Revolyssup commented on issue #10067:
URL: https://github.com/apache/apisix/issues/10067#issuecomment-1686547583
@qyk1995 Refer to something like this https://github.com/apache/apisix/blob/1fd2613198e7640018ea5576d9935b828e25fb9f/t/plugin/redirect.t#L783
--
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
[GitHub] [apisix] qyk1995 commented on issue #10067: help request: How to forward the parameter of http://a.com/api/v1/admin/casbinPolicyList?sub=user to http://b.com/api/v1/admin/casbinPolicyList?sub=use?
Posted by "qyk1995 (via GitHub)" <gi...@apache.org>.
qyk1995 commented on issue #10067:
URL: https://github.com/apache/apisix/issues/10067#issuecomment-1687768241
@Revolyssup thank you answer, but following ? value no. example xxxxxx?sub=use
my config
` "plugins": {
"redirect": {
"regex_uri": [
"/(.*)",
"http://b.com/$request_uri"
],
"ret_code": 301
}
},`
--
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