Hi all!
Quick question:
I have a common lua library (/opt/mylib.lua) which I want to include in the package path and reuse in custom access_by_lua_file scripts in 2 separate endpoints (one script per endpoint, using the common functions in mylib). However, the lua_package_path directive only seems to affect set_by_lua* and content_by_lua* - and has no effect on my scripts, which are executed by access_by_lua_file (I'm getting an attempt to index global 'mylib' (a boolean value)error).
Is there a reason why the path wouldn't be set for the access_by_lua*?
And most importantly - how to overcome this?
Many thanks!
Victor.