From 42a8f2994a39317f0ab95b302604ca2f150c0eaf Mon Sep 17 00:00:00 2001 From: zhaoxiaobiao Date: Fri, 4 Feb 2022 22:07:31 +0800 Subject: [PATCH 1/2] add server_rewrite --- src/ngx_http_lua_module.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/ngx_http_lua_module.c b/src/ngx_http_lua_module.c index fbeba12a7f..2a41328c0a 100644 --- a/src/ngx_http_lua_module.c +++ b/src/ngx_http_lua_module.c @@ -290,6 +290,15 @@ static ngx_command_t ngx_http_lua_cmds[] = { (void *) ngx_http_lua_filter_set_by_lua_file }, #endif + /* rewrite_by_lua "" */ + { ngx_string("server_rewrite_by_lua"), + NGX_HTTP_SRV_CONF|NGX_CONF_TAKE1, + ngx_http_lua_rewrite_by_lua, + NGX_HTTP_LOC_CONF_OFFSET, + 0, + (void *) ngx_http_lua_rewrite_handler_inline }, + + /* rewrite_by_lua "" */ { ngx_string("rewrite_by_lua"), NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_HTTP_LIF_CONF From 37d3248c51ec54d8023f3a1e42d92bfefc8cb2bd Mon Sep 17 00:00:00 2001 From: zhaoxiaobiao Date: Fri, 4 Feb 2022 22:12:36 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=90=8E=20ci:=20add=20test-ci?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 335ae71ee6..4bda6ffbcd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,7 @@ dist: bionic branches: only: - "master" + - "test-ci" os: linux