server {
location / {
content_by_lua_block {
local str1 = "Hi "
local str2 = "All!"
ngx.say(str1 .. str2)
}
}
}
content_by_lua_block
- lib:nginx-lua module directive to specify block of Lua codelocal str1
- defines first stringlocal str2
- defines second stringstr1 .. str2
- concatenatesstr1
andstr2
group: string
local str1 = "Hi "
local str2 = "All!"
ngx.say(str1 .. str2)
Hi All!
link_youtube: https://youtu.be/GBoWG6OA_oQ