nginx模块分类
1.核心模块
ngx_http_core_module
2.标准模块
http模块
3.第三方模块
ngx_http_core_module
server{
listen
server_name
root
}
location 实现url到文件路径系统的映射
ngx_http_access_module
1.allow
2.deny
如何添加第三方模块
1.原来安装的配置,必须在重新安装新模块的时候,加上
2.不能直接make&&install
configure --prefix=/opt/nginx
安装方法
./configure --prefix=/安装目录 --add-module=/第三方模块/