这是一个创建于 3565 天前的主题,其中的信息可能已经有所发展或是发生改变。
有什么办法在执行完 echo '[]' 后,直接返回了吗?
遇到个问题,当 script_a.lua 和 script_b.lua 都匹配的时候, echo '[]'会被覆盖掉
location ~ ^/ {
set_by_lua_file $res /etc/nginx/lua/script_a.lua;
if ($res = 'ok') {
echo '[]';
}
include uwsgi_params;
set_by_lua_file $res /etc/nginx/lua/script_b.lua;
if ($res = 'ok') {
uwsgi_pass upstream_b;
}
uwsgi_pass upstream_c;
}
4 条回复 • 2015-01-04 17:31:03 +08:00
|
|
1
msg7086 2015-01-04 16:39:54 +08:00
return 200;?
|
|
|
2
hydrazt 2015-01-04 17:05:33 +08:00
return 200的话,uwsgi的http status就被覆盖了?
|
|
|
4
hydrazt 2015-01-04 17:31:03 +08:00
|