【发布时间】:2018-11-30 02:08:28
【问题描述】:
我正在尝试按照 RubyGems 独立安装的官方文档将 Phusion Passenger Enterprise 安装到 Alpine 3.8 容器映像中,如下所示:
- Installing Passenger Enterprise Standalone from RubyGems (without RVM)
- Non-interactive, automatic, headless installs or upgrades
但是,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