如何在Phusion客运企业的编译中启用GeoIP支持?

时间:2018-11-30 02:08:28

标签: nginx passenger geoip alpine

我试图通过遵循RubyGems的独立安装的官方文档,将Phusion Passenger Enterprise安装到Alpine 3.8容器映像中,

但是,由于我的Nginx配置模板包含geoip_*条指令,所以无法启动Passenger,

*** 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?

1 个答案:

答案 0 :(得分:1)

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