【发布时间】:2017-02-20 16:16:59
【问题描述】:
我使用 brew 在 Mac 上安装 nginx。现在我想添加一个模块 http_realip。我在文档中发现我应该使用命令./configuration --with-http_realip_module 来添加模块。但是我只能找到 nginx.conf 而不是配置文件。有谁知道Mac上配置文件的默认路径是什么?
【问题讨论】:
我使用 brew 在 Mac 上安装 nginx。现在我想添加一个模块 http_realip。我在文档中发现我应该使用命令./configuration --with-http_realip_module 来添加模块。但是我只能找到 nginx.conf 而不是配置文件。有谁知道Mac上配置文件的默认路径是什么?
【问题讨论】:
我使用nginx-full解决了这个问题:brew install nginx-full --with-realip
【讨论】: