代码例子
nginx.conf
location /lua {
default_type text/html;
content_by_lua_file script/helloWorld.lua;
}
helloWorld.lua
ngx.say("<h1>Hello, world!</h1>");
nginx.conf
location /lua {
default_type text/html;
content_by_lua_file script/helloWorld.lua;
}
helloWorld.lua
ngx.say("<h1>Hello, world!</h1>");