如何在 Phusion Passenger Enterprise 的编译中启用 GeoIP 支持?
How can I enable GeoIP support in Phusion Passenger Enterprise's compilation?
我正在尝试按照官方文档将 Phusion Passenger Enterprise 安装到 Alpine 3.8 容器映像中,以使用 RubyGems 进行独立安装,如下所示:
- 安装 Passenger Enterprise Standalone
来自 RubyGems(没有 RVM)
- Non-interactive, automatic, headless installs or upgrades
但是,Passenger 无法启动,因为我的 Nginx 配置模板包含 geoip_*
Passenger standalone 的嵌入式 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?
完成此工作的最佳方法是将 Passenger for Nginx 与您自己的 Nginx 安装结合使用。这样您就可以控制要启用的模块。
我正在尝试按照官方文档将 Phusion Passenger Enterprise 安装到 Alpine 3.8 容器映像中,以使用 RubyGems 进行独立安装,如下所示:
- 安装 Passenger Enterprise Standalone 来自 RubyGems(没有 RVM)
- Non-interactive, automatic, headless installs or upgrades
但是,Passenger 无法启动,因为我的 Nginx 配置模板包含 geoip_*
Passenger standalone 的嵌入式 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?
完成此工作的最佳方法是将 Passenger for Nginx 与您自己的 Nginx 安装结合使用。这样您就可以控制要启用的模块。