welcome add this question to FAQ of APISIX

Jan Li <[email protected]>于2020年3月27日 周五上午11:22写道:

> Thanks YuanSheng.
>
> On Fri, Mar 27, 2020 at 11:13 AM YuanSheng Wang <[email protected]>
> wrote:
>
> > > Is this correct?
> >
> > yes, you are right.
> >
> > match step:
> > 1. fully matching
> > 2. prefix matching: Sort by prefix length, longer matches first
> >
> > On Fri, Mar 27, 2020 at 10:20 AM Jan Li <[email protected]> wrote:
> > >
> > > Hi team,
> > >
> > >         Could you please help me confirm the priority of route
> matching?
> > > Especially when multiple routes include wildcards.
> > >
> > >         For example, I have 3 routes configured:
> > >
> > >         /foo/bar
> > >         /foo/*
> > >         /*
> > >
> > >         I suppose the behavior is like this:
> > >         /foo/bar will match /foo/bar
> > >         /foo/foo will match /foo/*
> > >         /bar will match /*
> > >
> > >         Is this correct?
> >
> >
> >
> > --
> > MembPhis
> > My github: https://github.com/membphis
> > Apache APISIX: https://github.com/apache/incubator-apisix
> >
>
-- 
Thanks,
Ming Wen, Apache APISIX & Apache SkyWalking
Twitter: _WenMing

Reply via email to