Skip to content
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

Can support begin xxx*.xxx.com? #112

Open
kongjun01 opened this issue Jan 18, 2022 · 4 comments
Open

Can support begin xxx*.xxx.com? #112

kongjun01 opened this issue Jan 18, 2022 · 4 comments
Labels
documentation Improvements or additions to documentation

Comments

@kongjun01
Copy link

my route host is engine*.cacazhu.com , Can support begin xxx*.xxx.com?

@membphis
Copy link
Contributor

membphis commented Jan 18, 2022

if you want to use the regex, you can take a look at this way:

local radix = require("resty.radixtree")
local rx = radix.new({
    {
        paths = {"/bb*"},
        vars = {
            {"host", "~~", "xxx\\w+.xxx.com"}
        }
    }
})

@juzhiyuan
Copy link
Contributor

Maybe we could add this tip to our docs? @membphis @kongjun01

@membphis membphis reopened this Feb 8, 2022
@membphis membphis added the documentation Improvements or additions to documentation label Feb 8, 2022
@membphis
Copy link
Contributor

membphis commented Feb 8, 2022

Maybe we could add this tip to our docs? @membphis @kongjun01

@kongjun01 would you like to submit a PR?

@kongjun01
Copy link
Author

My pleasure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants