【问题标题】:How can I enable GeoIP support in Phusion Passenger Enterprise's compilation?如何在 Phusion Passenger Enterprise 的编译中启用 GeoIP 支持?
【发布时间】:2018-11-30 02:08:28
【问题描述】:

我正在尝试按照 RubyGems 独立安装的官方文档将 Phusion Passenger Enterprise 安装到 Alpine 3.8 容器映像中,如下所示:

但是,Passenger 不会启动,因为我的 Nginx 配置模板包含 geoip_* 指令,Passenger 独立的嵌入式 Nginx 核心不支持:

*** ERROR: the Nginx configuration that Phusion Passenger Standalone generated internally contains problems. The error message returned by the Nginx engine is:

    nginx: [emerg] unknown directive "geoip_country" in nginx.conf:57
    nginx: configuration file nginx.conf test failed

This probably means that you have a problem in your Nginx configuration template. Please fix your template.

由于Passenger 无论如何都是从头开始编译所有内容,我如何确保为内部Nginx 内核启用GeoIP?

【问题讨论】:

    标签: nginx passenger geoip alpine


    【解决方案1】:

    完成这项工作的最佳方法是使用Passenger for Nginx,并结合您自己的Nginx 安装。这样您就可以控制要启用的模块。

    【讨论】:

      猜你喜欢
      • 2018-09-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-09-08
      • 2014-10-19
      • 1970-01-01
      • 2014-05-12
      • 1970-01-01
      相关资源
      最近更新 更多