访问 /test/[a-z].html,需要重定向到 /test/1.html ,然后判断/test/1.html文件是否存在,存在直接静态文件输出,不存在的化再重定向到 /test/backend,用rewrite_by_lua不知道咋写,刚学openresty。
nginx 有if (!-f $request_filename){},lua是咋写的呢

    Write a Reply...