apisix
apisix copied to clipboard
Whether to consider supporting nginx's regular route matching
Description
There are many regex-based routing rule configurations in my project, as follows: location ~* ^/co_(.*)/product_([0-9a-zA-Z-]+)_([a-z]+).html { if ( $uaType = "mobile") { proxy_pass http://xxx; } proxy_pass http://yyy; }
I can't replace the original rules with libradixtree based rules. Is there any plan to provide regular-based routing matching rules, or provide related plug-ins?
see https://github.com/apache/apisix/blob/master/docs/en/latest/FAQ.md#how-do-i-use-regular-expressions-regex-for-matching-uri-in-a-route
thanks for your reply But I still have a question:how to configure?
I looked at the dashboard's routing configuration - advanced configuration features,I found that only the following situations are supported, as shown in the figure:
So how to choose the uri in vars, or can only be added manually by viewing the routing page (and is there a detailed document)
@wodingyang Try the "内置参数"?
This issue has been marked as stale due to 350 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the [email protected] list. Thank you for your contributions.
This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.