# When using openresty's lua, you have to include this in your http {} block lua_package_path "/usr/share/lua/5.1/?.lua;;"; init_by_lua_block { require "resty.core" collectgarbage("collect") -- just to collect any garbage }