We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 125a3d6 commit 133be82Copy full SHA for 133be82
Openresty/Lua-file/lua-01.lua
@@ -8,10 +8,10 @@ return _M
8
9
--[[
10
location /lua_file {
11
- default_type 'text/html'; -- 设置该行,则在浏览器就可以访问了
12
- lua_code_cache off; -- 关闭缓存
+ default_type 'text/html'; -- 设置该行,则在浏览器就可以访问了
+ lua_code_cache off; -- 关闭缓存
13
content_by_lua_block {
14
- local mydata = require "../Lua/lua-01"
+ local mydata = require "../Lua/lua-01" -- 注意这个路径 conf/nginx.conf 为相对路径的
15
ngx.say(mydata.get_age("dog"))
16
}
17
0 commit comments