lua - Using luac file on Nginx -
i have been experimenting using lua in nginx - quite neat little capability can use effectively. however, 1 of concerns relates ip protection thought use online tool compile my, tested, lua script. tried https://luac.mtasa.com/. uploaded file server, changed /etc/nginx/sites-available/default
file use *luac** instead of orginal lua , reloaded nginx. however, when attempt browse resource being serviced lua(c) error log message *70 failed load external lua file... : bad byte code header
. how should interpreted? options are
- that particular online compiler not generating valid luac.
- the nginx/lua combo not understand particular luac.
i should mention using nginx 1.6.2 on ubuntu 14.10 (64 bit). installed lua enabled nginix via apt-get install nginx-extras
.
i newbie here. i'd appreciate help.
compiling lua nginx has specifics. see details on official lua module page http://wiki.nginx.org/httpluamodule#lua.2fluajit_bytecode_support
Comments
Post a Comment