Welcome to Centmin Mod Community
Register Now

Nginx (RESOLVED)Problem with lua

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

  1. EckyBrazzz

    EckyBrazzz Active Member

    767
    153
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +280
    Local Time:
    5:23 PM
    1.17.x Cluster
    10.3.x Cluster & Redis
    Acutely, I showed it the first time in post #3
     
  2. eva2000

    eva2000 Administrator Staff Member

    42,262
    9,550
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,708
    Local Time:
    6:23 AM
    Nginx 1.17.x
    MariaDB 5.5/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.