secure_link_module模块 访问www.xxx.com?md5=xxx&expires=xxx
geoip_module 读取ip所在地域信息
安装:yum install nginx-module-geoip
场景:1.区别国内国外http访问规则
2:区别国内城市地域http访问规则
配置:
1:在nginx加载模块
2:geoip_country /etc/nginx/geoip/GeoIP.dat;
geoip_city /etc/nginx/geoip/GeoLiteCity.dat;
location /myip {
default_type text/plain;
return 200 “$remote_addr $geoip_country_name $geoip_country_code $geoip_city”;
}