参考文献

Nginx模块结构图

img

模块名称 功能描述
ngx_http_core 配置端口、URI分析、服务器响应错误处理、别名控制以及其他HTTP核心事务
ngx_http_access_module 基于IP地址的访问控制(允许/拒绝)
ngx_http_auth_basic_module 基于HTTP的身份认证
ngx_http_autoindex_module 处理以/结尾的请求并自动生成目录列表
ngx_http_browser_module 解析HTTP请求头中的User-Agent域的值
ngx_http_charset_module 指定网页编码
ngx_http_empty_gif_module 从内存创建1×1的透明GIF图片(快速调用)
ngx_http_fastcgi_module 支持FastCGI协议
ngx_http_geo_module 将客户端请求中的参数转化为键值对变量
ngx_http_gzip_module 压缩请求响应,减少数据传输量
ngx_http_headers_filter_module 设置HTTP响应头
ngx_http_index_module 处理以/结尾的请求,未找到index页时转交ngx_http_autoindex_module处理
ngx_http_limit_req_module 限制客户端请求的响应和处理速率
ngx_http_limit_conn_module 限制客户端连接的响应和处理速率
ngx_http_log_module 自定义access日志
ngx_http_map_module 创建任意键值对变量
ngx_http_memcached_module 支持Memcached协议
ngx_http_proxy_module 支持代理服务
ngx_http_referer_module 过滤HTTP头中Referer域值为空的请求
ngx_http_rewrite_module 通过正则表达式重定向请求
ngx_http_scgi_module 支持SCGI协议
ngx_http_ssl_module 支持HTTPS协议
ngx_http_upstream_module 定义服务器组(用于负载均衡),支持代理/FastCGI/Memcached重定向