Hi,一下是一段测试配置,目的是将所有的请求都重定向到 /hah.html但是没有效果http { ... rewrite_by_lua ' if ngx.var.uri ~= "/hah.html") then ngx.redirect ("/hah.html") ngx.exit (ngx.HTTP_OK) end '; server { ... }}