Want to subscribe to topics you're interested in?
Become a Member

Nginx (RESOLVED)Problem with lua

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

  1. EckyBrazzz

    EckyBrazzz Active Member

    857
    174
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +318
    Local Time:
    11:27 PM
    Latest
    Latest
    Acutely, I showed it the first time in post #3
     
  2. eva2000

    eva2000 Administrator Staff Member

    43,432
    9,861
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,228
    Local Time:
    12:27 PM
    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.