You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/08/24 07:41:34 UTC

[GitHub] [apisix] xyz2b opened a new issue #2113: request help: How to modify lua_package_path and lua_package_cpath in nginx.conf ?

xyz2b opened a new issue #2113:
URL: https://github.com/apache/apisix/issues/2113


   ### Issue description
   
   How to modify lua_package_path and lua_package_cpath in nginx.conf ? I have config lua_package_path and lua_package_cpath in config.yaml -> nginx_config -> http,but it is not work!
   
   config.yaml
   `nginx_config:                     # config for render the template to genarate nginx.conf
     http:
       lua_package_path: "$prefix/deps/share/lua/5.1/?.lua;$prefix/deps/share/lua/5.1/?/init.lua;$prefix/?.lua;$prefix/?/init.lua;;$prefix/?.lua;./?.lua;$prefix/openresty/luajit/share/luajit-2.1.0-beta3/?.lua;/usr/local/share/lua/5.1/?.lua;
   /usr/local/share/lua/5.1/?/init.lua;$prefix/openresty/luajit/share/lua/5.1/?.lua;$prefix/openresty/luajit/share/lua/5.1/?/init.lua;"
       lua_package_cpath: "$prefix/deps/lib64/lua/5.1/?.so;$prefix/deps/lib/lua/5.1/?.so;;./?.so;/usr/local/lib/lua/5.1/?.so;$prefix/openresty/luajit/lib/lua/5.1/?.so;/usr/local/lib/lua/5.1/loadall.so;"
   `
   
   ### Environment
   
   * apisix version (cmd: `apisix version`): apisix-1.5
   * OS: CentOS Linux release 7.7.1908 (Core) 3.10.0-1062.18.1.el7.x86_64
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] xyz2b closed issue #2113: request help: How to modify lua_package_path and lua_package_cpath in nginx.conf ?

Posted by GitBox <gi...@apache.org>.
xyz2b closed issue #2113:
URL: https://github.com/apache/apisix/issues/2113


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] xyz2b removed a comment on issue #2113: request help: How to modify lua_package_path and lua_package_cpath in nginx.conf ?

Posted by GitBox <gi...@apache.org>.
xyz2b removed a comment on issue #2113:
URL: https://github.com/apache/apisix/issues/2113#issuecomment-678965297


   > ### Issue description
   > How to modify lua_package_path and lua_package_cpath in nginx.conf ? I have config lua_package_path and lua_package_cpath in config.yaml -> nginx_config -> http,but it is not work!
   > 
   > config.yaml
   > `
   > nginx_config: # config for render the template to genarate nginx.conf
   > 
   > http:
   > 
   > ```
   > lua_package_path: "$prefix/deps/share/lua/5.1/?.lua;$prefix/deps/share/lua/5.1/?/init.lua;$prefix/?.lua;$prefix/?/init.lua;;$prefix/?.lua;./?.lua;$prefix/openresty/luajit/share/luajit-2.1.0-beta3/?.lua;/usr/local/share/lua/5.1/?.lua;
   > ```
   > 
   > /usr/local/share/lua/5.1/?/init.lua;$prefix/openresty/luajit/share/lua/5.1/?.lua;$prefix/openresty/luajit/share/lua/5.1/?/init.lua;"
   > lua_package_cpath: "$prefix/deps/lib64/lua/5.1/?.so;$prefix/deps/lib/lua/5.1/?.so;;./?.so;/usr/local/lib/lua/5.1/?.so;$prefix/openresty/luajit/lib/lua/5.1/?.so;/usr/local/lib/lua/5.1/loadall.so;"
   > `
   > 
   > ### Environment
   > * apisix version (cmd: `apisix version`): apisix-1.5
   > * OS: CentOS Linux release 7.7.1908 (Core) 3.10.0-1062.18.1.el7.x86_64
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] xyz2b commented on issue #2113: request help: How to modify lua_package_path and lua_package_cpath in nginx.conf ?

Posted by GitBox <gi...@apache.org>.
xyz2b commented on issue #2113:
URL: https://github.com/apache/apisix/issues/2113#issuecomment-678965297


   > ### Issue description
   > How to modify lua_package_path and lua_package_cpath in nginx.conf ? I have config lua_package_path and lua_package_cpath in config.yaml -> nginx_config -> http,but it is not work!
   > 
   > config.yaml
   > `
   > nginx_config: # config for render the template to genarate nginx.conf
   > 
   > http:
   > 
   > ```
   > lua_package_path: "$prefix/deps/share/lua/5.1/?.lua;$prefix/deps/share/lua/5.1/?/init.lua;$prefix/?.lua;$prefix/?/init.lua;;$prefix/?.lua;./?.lua;$prefix/openresty/luajit/share/luajit-2.1.0-beta3/?.lua;/usr/local/share/lua/5.1/?.lua;
   > ```
   > 
   > /usr/local/share/lua/5.1/?/init.lua;$prefix/openresty/luajit/share/lua/5.1/?.lua;$prefix/openresty/luajit/share/lua/5.1/?/init.lua;"
   > lua_package_cpath: "$prefix/deps/lib64/lua/5.1/?.so;$prefix/deps/lib/lua/5.1/?.so;;./?.so;/usr/local/lib/lua/5.1/?.so;$prefix/openresty/luajit/lib/lua/5.1/?.so;/usr/local/lib/lua/5.1/loadall.so;"
   > `
   > 
   > ### Environment
   > * apisix version (cmd: `apisix version`): apisix-1.5
   > * OS: CentOS Linux release 7.7.1908 (Core) 3.10.0-1062.18.1.el7.x86_64
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org