语法: lua_package_path <lua-style-path-str>
默认: The content of LUA_PATH environ variable or Lua's compiled-in defaults.
环境: http
设置set_by_lua,content_by_lua 和 其他脚本对Lua模块的查找路径。 路径字符串是标准Lua路径格式,;;
可被用来代表原始搜索路径。
从v0.5.0rc29
发行版开始,特殊符号$prefix
或 ${prefix}
可用于搜索路径字符串中。server prefix
的值,通常是由Nginx服务启动时的-p PATH
命令行决定的。
English source:
syntax: lua_package_path <lua-style-path-str>
default: The content of LUA_PATH environ variable or Lua's compiled-in defaults.
context: http
Sets the Lua module search path used by scripts specified by set_by_lua,
content_by_lua and others. The path string is in standard Lua path form, and ;;
can be used to stand for the original search paths.
As from the v0.5.0rc29
release, the special notation $prefix
or ${prefix}
can be used in the search path string to indicate the path of the server prefix
usually determined by the -p PATH
command-line option while starting the Nginx server.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。