Welcome to Centmin Mod Community
Become a Member

Nginx (RESOLVED)Problem with lua

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

  1. EckyBrazzz

    EckyBrazzz Active Member

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

     
  2. eva2000

    eva2000 Administrator Staff Member

    50,919
    11,804
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,262
    Local Time:
    6:43 AM
    Nginx 1.25.x
    MariaDB 10.x
    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.