vanilla-zh
  • 简介
  • 快速上手
    • Hello World
    • 如何调试
    • 如何新增一个Controller
    • 如何使用models/dao
    • 如何使用models/service
  • APIs
    • 配置
    • Bootstrap
    • Controllers
    • 模板引擎
    • 插件
    • 路由
    • 异常处理
    • 内建类
  • Libs
    • Cookie
  • 进阶
    • 页缓存
    • 面向对象
    • Vanilla 包开发
  • OpenResty
    • OR文档精炼
      • ngx.timer
      • ngx.config
      • coroutine
      • ngx.thread
  • ChangeLogs
    • vanilla-0.1.0.rc7
    • vanilla-0.1.0.rc6
    • vanilla-0.1.0.rc5
    • vanilla-0.1.0.rc4
    • vanilla-0.1.0.rc3
  • 杂项
    • Nginx执行阶段
    • GDB 调试 OpenResty
    • OpenResty 正则示例收集
    • 基于 OpenResty 安装 Luarocks
    • Vanilla集成的一些优秀第三方包
      • QCon 2015 Broken Performance Tools
  • Vanilla使用经验
    • 用户列表
Powered by GitBook
On this page
  • ngx.config.subsystem
  • ngx.config.debug

Was this helpful?

  1. OpenResty
  2. OR文档精炼

ngx.config

ngx.config.subsystem

语法: subsystem = ngx.config.subsystem 上下文: set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, init_by_lua*, init_worker_by_lua*

这个字符串字段表示了当前基于哪个 Nginx 子系统,对当前模块(ngx_stream_lua_module),这个字段始终返回 “http”,而对 ngx_stream_lua_module 模块,这个字段将返回 “stream”

这个字段在 v0.10.1 版本第一次释出。

ngx.config.debug

语法: debug = ngx.config.debug 上下文: set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, init_by_lua*, init_worker_by_lua*

*这个布尔字段表示了当前 Nginx 是否打开 debug 编译选项,如编译时配置为 ./configure option --with-debug。

这个字段在 v0.8.7 版本第一次释出。

Previousngx.timerNextcoroutine

Last updated 6 years ago

Was this helpful?