Closed ramonli closed 4 years ago
I think it is possible that you have included a lua_package_path
statement wrong. What is the value that you set for lua_package_path
?
Below are my lua related directives:
lua_need_request_body on; lua_package_path "/etc/nginx/luaconf/?.lua;;"; lua_shared_dict limit 500m; init_by_lua_file /etc/nginx/luaconf/init.lua; log_by_lua_file /etc/nginx/luaconf/log.lua; access_by_lua_file /etc/nginx/luaconf/waf.lua;
Ok. To be clear this is not a problem with this module but with lua finding the packages. The lua_package_path
looks good, as it contains the ;;
at the end.
You should be able to see where the md5.lua
file is stored with this command:
rpm -ql lua-md5
Then, you can check your lua package paths with: lua -e 'print(package.path)'
This way you can confirm that the md5.lua
file is inside a directory that is inside your package paths. If not, you can always copy the md5.lua
file to /etc/nginx/luaconf/
directory and everything should work.
I have installed lua-md5:
however when do purge, nginx throw below errors:
My environment:
Please help.