NGinX 서버에 GeoIP 를 이용해서... 즉 사용자의 아이피를 체크해서 해당 아이피에 지역을 파악하고 해당 지역의 언어나 내용으로 서비스를 구성할 수 있도록 할 수 있는 모듈이 탑재되었군요.
1.11.3 (2016년 7월 26일 출시) 버전부터 지원한다고 합니다.
The ngx_stream_geoip_module
module (1.11.3) creates variables with values depending on the client IP address, using the precompiled MaxMind databases.
When using the databases with IPv6 support, IPv4 addresses are looked up as IPv4-mapped IPv6 addresses.
This module is not built by default, it should be enabled with the --with-stream_geoip_module
configuration parameter.
stream {
geoip_country GeoIP.dat;
geoip_city GeoLiteCity.dat;
map $geoip_city_continent_code $nearest_server {
default example.com;
EU eu.example.com;
NA na.example.com;
AS as.example.com;
}
...
}
댓글을 달아 주세요