VeryNginx
VeryNginx copied to clipboard
安装一切成功,手动安装了最新的新了 OR,报这个错误。
everything was installd successfully,but when us nginx -t, it boomd。
nginx: [emerg] unknown directive "balancer_by_lua_file" in /opt/verynginx/verynginx/nginx_conf/in_http_block.conf:3 nginx: configuration file /etc/nginx/nginx.conf test failed
i don't know how to fix it because i was new to lua&nginx. please help me thank you. 求解答
balancer_by_lua* 需要放在upstream context中,在其他位置不能识别,eg: upstream vn_upstream{ server 127.0.0.1; balancer_by_lua_file /opt/verynginx/verynginx/lua_script/on_banlance.lua; keepalive 1024; #Connection pool }
everything was installd successfully,but when us nginx -t, it boomd。
nginx: [emerg] unknown directive "balancer_by_lua_file" in /opt/verynginx/verynginx/nginx_conf/in_http_block.conf:3 nginx: configuration file /etc/nginx/nginx.conf test failed
i don't know how to fix it because i was new to lua&nginx. please help me thank you. 求解答
请问下问题是否已解决?