View this package for all CentOS/RHEL versions →
How to install nginx-module-geoip2 (x86_64)
NGINX GeoIP2 module
Install
sudo yum -y install https://extras.getpagespeed.com/release-latest.rpm sudo amazon-linux-extras install epel sudo yum -y install nginx-module-geoip2
Description
NGINX module which creates variables with values from the MaxMind geoip2 databases. based on the client IP (default) or from a specific variable (supports both IPv4 and IPv6) To enable this module after installation, add the following to /etc/nginx/nginx.conf and reload NGINX: load_module modules/ngx_http_geoip2_module.so; load_module modules/ngx_stream_geoip2_module.so; Alternatively, enable all installed modules by adding this line to the top of /etc/nginx/nginx.conf: include /usr/share/nginx/modules/*.conf;
RPMs
| Package | Size | Built | Changes |
|---|---|---|---|
| nginx-module-geoip2-1.31.8+3.4-3.amzn2.gps.x86_64 | 20 KiB | 2026-10-21 | no changelog |