Hello!
On Tue, Nov 17, 2015 at 7:56 PM, Bino Oetomo wrote:
> My nginx.conf just copied from
> I edit line '
> lua_package_path "/path/to/lua-resty-http/lib/?.lua;;";
>
> ' to '
> lua_package_path "/usr/local/lib/lua/resty/?.lua;;";
> '
It seems that you really mean
lua_package_path "/usr/local/lib/lua/?.lua;;";
instead.
> -e Nginx Daemon Starting /usr/local/openresty/nginx/conf/nginx.conf ...
> nginx: [error] init_by_lua error: init_by_lua:2: module
> 'resty.upstream.socket' not found:
> no field package.preload['resty.upstream.socket']
> no file '/usr/local/lib/lua/resty/resty/upstream/socket.lua'
Note the duplicate "resty/" part in the line of the error message
above. That's why I suggested that alternative lua_package_path line
above.
Regards,
-agentzh