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

为什么规则只有最后一条生效,其他不生效? #35

Open
summer-hu opened this issue Mar 27, 2021 · 3 comments
Open

为什么规则只有最后一条生效,其他不生效? #35

summer-hu opened this issue Mar 27, 2021 · 3 comments

Comments

@summer-hu
Copy link

No description provided.

@synodriver
Copy link

一样的问题,可能是缓存吗?

@zzg329
Copy link

zzg329 commented Jan 5, 2023 via email

@synodriver
Copy link

我查出来了,lua读取文件的大问题,不知道为什么,只有最后一行读取是正确的,前面的末尾都多了个不可见字符,导致匹配不到,可以在程序里面输入ngx.say(#rule) ngx.say(rule)来验证。解决办法是修改读取配置文件的函数

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

No branches or pull requests

3 participants