Acutely, I showed it the first time in post #3
well another way to resolve this is to properly set lua_package_path when lua nginx module enabled openresty/lua-nginx-module in /usr/local/nginx/conf/nginx.conf in http{} context after variables for variables_hash_max_size Code (Text): http { map_hash_bucket_size 128; map_hash_max_size 4096; server_names_hash_bucket_size 128; server_names_hash_max_size 2048; variables_hash_max_size 2048; lua_package_path '/usr/local/lib/lua/?.lua;/usr/local/lib/lua/5.1/?.lua;/usr/local/lib/lua/ngx/?.lua;/usr/local/lib/lua/resty/?.lua;;'; usually you just set the lua_package_path to whatever lua scripts you specifically want to load/use rather than all of them.