Re: Re: lua code in log_by_lua_file not executed when the upstream server is down

2017-12-03 Thread tongshus...@migu.cn
Yes,it's of after the error_page directive removed. Tong From: Zhang Chao Date: 2017-12-04 11:26 To: nginx Subject: Re: lua code in log_by_lua_file not executed when the upstream server is down Hi! I think you should paste this issue to the openresty mail list https://groups.googl

Re: lua code in log_by_lua_file not executed when the upstream server is down

2017-12-03 Thread Zhang Chao
Hi! I think you should paste this issue to the openresty mail list https://groups.google.com/forum/#!forum/openresty-en For this problem, have you configured any error_page directives? the error_page will trigger an internal redirect. On 1 December 2017 at 21:10:12, tongshus...@migu.cn (tongshu

lua code in log_by_lua_file not executed when the upstream server is down

2017-12-01 Thread tongshus...@migu.cn
the nginx.conf as below: upstream my_server { server localhost:8095; keepalive 2000; } location /private/rush2purchase/ { limit_conn addr 20; proxy_pass http://my_server/private/rush2purchase/; proxy_set_header Host $host:$server_port; rewrite_by_lua_file D:/tmp/lua/draw_r