Nginx 常用模块和安装参数简介
Nginx发布于2017-02-09 / 更新于2021-01-02 07:04
ngx_devel_kit
一般简称 NDK,是一个供其它模块使用的拓展 Nginx 核心功能的模块,第三方模块开发可以基于它快速实现。强烈建议编译 Lua 时把它也带上,虽然不是必须的,缺少该依赖项时例如 set_by_lua 和 ndk.set_var. API 都将被自动禁用
--with-http_ssl_module
支持https,该模块需要 OpenSSL库
--with-openssl
指定nginx ssl模块依赖的ssl库
http_v2_module
支持http/2
http_stub_status_module
统计访问状态信息
ngx_cache_purge
清除 FastCGI
,proxy
,SCGI
和uWSGI
缓存
lua-nginx-module
将Lua的功能嵌入到Nginx HTTP服务器中
http_image_filter_module
动态处理图片尺寸
http_gunzip_module
发送数据之前进行压缩进行gzip压缩
--with-stream
支持stream
--with-stream_ssl_module
支持ssl stream
http_flv_module
为Flash Video(FLV)文件提供伪流服务器端支持,一般用于hlv直播
http_sub_module
支持替换字符串
--with-http_realip_module
能够使得后台服务器记录原始客户端的IP地址
讨论