Jump to different sites according to different regions

According to the geoip module of nginx, it is judged whether it is the mainland or overseas

For example: visit www.xxx.com

Idea 1: Redirect to a different domain name

If it is in mainland China, redirect directly to cn.xxx.com; otherwise redirect to en.xxx.com

Idea 2: load balancing to different ip

If geoip judges that the country where it is located is cn, it will jump to 172.xx.xx.xx (assumed to be the IP of the server in mainland China); otherwise, it will jump to 8.xx.xx.xx overseas (assumed to be deployed overseas server's ip)

Nginx geoip module realizes regional load balancing - Weixin_33943347's Blog - CSDN Blog

How can a multilingual website access websites in different languages ​​according to user ip? - SegmentFault 思否

The solution to the problem that the cached file resource of the packaged online CDN is not updated- Nuggets

Technical Architecture | Rainbond

Can a domain name use CDN at home and OSS+CDN abroad?-Q&A-Alibaba Cloud Developer Community-Alibaba Cloud

Guess you like

Origin blog.csdn.net/janthinasnail/article/details/126090688