GeoIP2
NGINX Plus에서 지원하는 GeoIP2 동적 모듈과 함께 MaxMind GeoIP2 데이터베이스를 사용하여 클라이언트 IP 주소 정보를 변수에 캡처합니다.
목차
1. 모듈 정보
2. 설치 지침
3. 추가 정보
1. 모듈 정보
MaxMind GeoIP2 데이터베이스는 지리적 위치 데이터(지역, 주, 도시, 우편 번호) 및 추가 데이터(ISP, 도메인, 연결 유형)를 포함하여 IP 주소의 포괄적인 프로필에 대한 상황별 데이터를 제공합니다. NGINX Plus는 이러한 데이터를 기반으로 국가에 따라 다른 유형의 콘텐츠를 제공하는 등 다양한 사용자 차별화 전략을 수행할 수 있습니다.
2. 설치 지침
1. GeoIP2 모듈 설치
Amazon Linux, CentOS, Oracle Linux 및 RHEL의 경우:
$ yum install nginx-plus-module-geoip2
Note: GeoIP2 모듈은 CentOS, Oracle Linux 및 RHEL의 ppc64le 버전에 설치할 수 없습니다.
Debian 및 Ubuntu의 경우:
$ apt-get install nginx-plus-module-geoip2
Alpine의 경우:
$ apk add nginx-plus-module-geoip2
2. NGINX Plus 구성 파일인 nginx.conf의 최상위(“main”) context에 load_module 지시문을 넣습니다.
load_module modules/ngx_http_geoip2_module.so;
load_module modules/ngx_stream_geoip2_module.so;
http {
# ...
}
3. 모듈에서 요구하는 대로 추가 구성을 수행합니다.
4. 모듈을 활성화하려면 NGINX Plus를 다시 로드하십시오.
$ nginx -t && nginx -s reload
3. 추가 정보
- Restricting Access by Geographical Location
- MaxMind GeoIP2 Databases
- MaxMind Geolite2 Free Downloadable Databases
- NGINX Dynamic Modules
- NGINX Plus 기술 사양