Discover Centmin Mod today
Register Now

Nginx (RESOLVED)Problem with lua

Discussion in 'Bug Reports' started by EckyBrazzz, Oct 17, 2019.

  1. EckyBrazzz

    EckyBrazzz Active Member

    916
    189
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +362
    Local Time:
    4:23 AM
    Latest
    Latest
    Acutely, I showed it the first time in post #3

     
  2. eva2000

    eva2000 Administrator Staff Member

    54,547
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    5:23 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    well another way to resolve this is to properly set lua_package_path when lua nginx module enabled openresty/lua-nginx-module

    in /usr/local/nginx/conf/nginx.conf in http{} context after variables for variables_hash_max_size
    Code (Text):
    http {
     map_hash_bucket_size 128;
     map_hash_max_size 4096;
     server_names_hash_bucket_size 128;
     server_names_hash_max_size 2048;
     variables_hash_max_size 2048;
    
    lua_package_path '/usr/local/lib/lua/?.lua;/usr/local/lib/lua/5.1/?.lua;/usr/local/lib/lua/ngx/?.lua;/usr/local/lib/lua/resty/?.lua;;';

    usually you just set the lua_package_path to whatever lua scripts you specifically want to load/use rather than all of them.