pull/368/head
midoks 2 years ago
parent 110e356fae
commit 2e6f5f9add
  1. 4
      plugins/openresty/conf/lua.conf
  2. 3
      plugins/openresty/index.py

@ -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;

@ -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):

Loading…
Cancel
Save