-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
help request: How to use proxy-pass plugin with regex_uri attributes when the url is encoded #9638
Comments
@yujinchoi-94 You dont need to use use_real_request_uri_unsafe here since you are passing the uri in regex_uri. You can remove it and it should work |
@Revolyssup
|
Yep you're right. What you're trying to do is currently not supported because the support for allowing encoded string is only available currently with |
/assign @Sn0rt pls take a look |
Description
Hi, I have to call an upstream server with encoded string.
For example,
I want to make a request like this.
(
%ED%85%8C%EC%8A%A4%ED%8A%B8
is encoded string)I've found out that the apisix uses decoded URI coming from nginx through this
So, i've tried using
use_real_request_uri_unsafe
option, but it doesn't work withregex_uri
.Is there any way to call the upstream server with encoded string?
Here's my configuration.
When I used the above configuration, the log result were like this
What I want is to call the upstream server with below url
Environment
apisix version
):/usr/local/openresty//luajit/bin/luajit /usr/local/apisix/apisix/cli/apisix.lua version 3.2.0
uname -a
):Linux dev-apisix-6d55c4cfd5-nqw9x 5.4.226-129.415.amzn2.x86_64 #1 SMP Fri Dec 9 12:54:21 UTC 2022 x86_64 GNU/Linux
openresty -V
ornginx -V
):openresty -V nginx version: openresty/1.21.4.1
nginx -V nginx version: openresty/1.21.4.1
curl http://127.0.0.1:9090/v1/server_info
):luarocks --version
):The text was updated successfully, but these errors were encountered: