1 Star 0 Fork 0

kuoyihp/nginx-lua-module-zh-wiki

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
lua_package_path.md 1.34 KB
一键复制 编辑 原始数据 按行查看 历史

lua_package_path

语法: lua_package_path <lua-style-path-str>

默认: The content of LUA_PATH environ variable or Lua's compiled-in defaults.

环境: http

设置set_by_luacontent_by_lua 和 其他脚本对Lua模块的查找路径。 路径字符串是标准Lua路径格式,;; 可被用来代表原始搜索路径。

v0.5.0rc29发行版开始,特殊符号$prefix${prefix}可用于搜索路径字符串中。server prefix的值,通常是由Nginx服务启动时的-p PATH命令行决定的。

Back to TOC

English source:

lua_package_path

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.

Back to TOC

Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/qizhendong_admin/nginx-lua-module-zh-wiki.git
git@gitee.com:qizhendong_admin/nginx-lua-module-zh-wiki.git
qizhendong_admin
nginx-lua-module-zh-wiki
nginx-lua-module-zh-wiki
master

搜索帮助