How to enable dynamic module with an existing NGINX installation

后端 未结 4 1305
轻奢々
轻奢々 2021-01-31 03:45

Introduction

From NGINX version 1.9.11 and upwarts, a new feature is introduced: dynamic modules.

With dynamic modules, you can optionally load separate shared

4条回答
  •  情深已故
    2021-01-31 04:01

    If you are using docker nginx:latest this module is already included in the image as such you only need specify load_module as such:

    "/usr/lib/nginx/modules/ngx_http_geoip_module.so";

    You also need to create a geoip folder in your nginx mapped volume. Though the databases seem to no longer been updated or available and geoip2 modules are not included. So you many need to google...

提交回复
热议问题