🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
ngx.config.nginx_version ------------------------ **语法:** *ver = ngx.config.nginx_version* **环境:** *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 内核版本数字标识。例如,版本 `1.4.3` 用 Lua 数字表示就是 1004003 。 该 API 在 `0.9.3` 版本首次引入。 [返回目录](#nginx-api-for-lua) > English source: ngx.config.nginx_version ------------------------ **syntax:** *ver = ngx.config.nginx_version* **context:** *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** This field take an integral value indicating the version number of the current Nginx core being used. For example, the version number `1.4.3` results in the Lua number 1004003. This API was first introduced in the `0.9.3` release. [Back to TOC](#nginx-api-for-lua)