diff --git a/plugins/openresty/conf/lua.conf b/plugins/openresty/conf/lua.conf index 0df019b7c..24481c2b2 100644 --- a/plugins/openresty/conf/lua.conf +++ b/plugins/openresty/conf/lua.conf @@ -3,8 +3,8 @@ lua_package_cpath "{$SERVER_PATH}/web_conf/nginx/lua/?.so;{$SERVER_PATH}/openres lua_code_cache on; -#waf +#init_worker_by_lua init_worker_by_lua_file {$SERVER_PATH}/web_conf/nginx/lua/empty.lua; -#waf && webstats need; +#access_by_lua_file access_by_lua_file {$SERVER_PATH}/web_conf/nginx/lua/empty.lua; \ No newline at end of file diff --git a/plugins/openresty/index.py b/plugins/openresty/index.py index e373fce5f..56e3a5543 100755 --- a/plugins/openresty/index.py +++ b/plugins/openresty/index.py @@ -159,6 +159,9 @@ def confReplace(): if not os.path.exists(empty_lua): mw.writeFile(empty_lua, '') + mw.opLuaInitWorkerFile() + mw.opLuaInitAccessFile() + # 静态配置 php_conf = mw.getServerDir() + '/web_conf/php/conf' if not os.path.exists(php_conf):