This repository has been archived by the owner on Aug 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 112
set_by_lua #8
Comments
可以支持 |
@yejingx 是我用的方式不对吗,下面是配置,执行ngins -s reload 后直接报错
} 执行命令 /usr/local/slardar/nginx/sbin/nginx -s reload |
@wangwj 检查下你的 lua-nginx-module 版本是否大于 v0.9.17。 |
@yejingx 感谢回复,我直接用的是maser源码编译的,我已经确认过了,set_by_lua 也是不能用的,我看了我们的编译的依赖版本配置0.10.6rc1,配置如下,确实无法识别,我也是比较纳闷,原理上应该是支持的 |
估计是找到问题了,应该是编译少ndk的相关东西,https://github.com/simpl/ngx_devel_kit |
恩,看到文档里的说明了:
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
location / {
好像不支持 set_by_lua指令,想用这个指令实现如下效果
set_by_lua $cur_ups '
url中取一个固定参数的值
'
proxy_pass $scheme://$cur_ups;
}
这样我就可以通过参数的不一样,动态的跳转到对应的upstream
The text was updated successfully, but these errors were encountered: