【问题标题】:brew install 3rd party nginx modules on nginx to enable Headers Morebrew 在 nginx 上安装 3rd 方 nginx 模块以启用标头更多
【发布时间】:2014-08-04 15:13:12
【问题描述】:

当我使用自制软件安装 nginx 时,我似乎无法弄清楚如何为 nginx 安装 Headers More 模块。

我找到了I use homebrew to install nginx, and how to add 3rd modules?,但这实际上并没有用这个模块重新编译 nginx。它只是下载模块。

我找到了 nginx-full 但带有 --with-headers-more 选项的事件我似乎无法正常工作。

我不断收到此错误:

nginx: [emerg] unknown directive "more_set_input_headers" in /usr/local/etc/nginx/sites-enabled/....

【问题讨论】:

    标签: nginx http-headers homebrew


    【解决方案1】:

    我使用以下命令安装成功

    brew install nginx-full --with-headers-more-module
    

    确保您的冲泡配方是最新的

    brew update
    

    【讨论】:

      猜你喜欢
      • 2020-05-16
      • 1970-01-01
      • 1970-01-01
      • 2017-06-01
      • 2016-02-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-05-16
      相关资源
      最近更新 更多