We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how can i get the $prefix (lua_package_path ";;$prefix/?.lua;";) variable in lua file
The text was updated successfully, but these errors were encountered:
$prefix 这个其实不是 Nginx 变量,ngx_lua 在处理 lua_package_path 会把它展开成实际的前缀。 在 Lua 代码里可以用 ngx.config.prefix() 这个函数获取到同样的值。
$prefix
lua_package_path
ngx.config.prefix()
Sorry, something went wrong.
谢谢你,解决了我的问题
No branches or pull requests
how can i get the $prefix (lua_package_path ";;$prefix/?.lua;";) variable in lua file
The text was updated successfully, but these errors were encountered: