使用基于国家相同的URL拆分流量? [英] Using the same URL split traffic based on country?

查看:209
本文介绍了使用基于国家相同的URL拆分流量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网站,工作在英国,我希望用相同的URL,但有两个不同的服务器拓展到美国(一家英国服务器和一台美国服务器,每台服务器上的网站将是完全不同的)。该网站是由一个Linux EC2托管一个字preSS市场。

I have a website that operates in the UK, I wish to expand to the US using the same URL but with two different servers (one UK server and one US server, as the websites on each server will be completely different). The website is a wordpress marketplace hosted by a linux EC2.

我怎么能发送从美国用户在美国版本的网站?我还可以让用户之间的两个版本交替? (以防有人从美国希望看到英国版本?)

How can I send users from the US to the US version of the site? can I also allow users to alternate between to the two versions? (incase someone from the US wishes to see the UK version?)

推荐答案

你可以做到这一点与Route53和地缘路由: http://docs.aws.amazon.com/Route53/latest /DeveloperGuide/routing-policy.html

you can do this with Route53 and geo routing: http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy.html

详细信息: 你会设置你的网站/服务在两个不同的地方,使用2个不同的堆栈。你需要你已经注册了一个域名,你需要Route53来管理域。

More details: You would setup your website / service in the 2 different locations, using 2 different stacks. You need a domain that you've registered and you need Route53 to manage that domain.

您需要创建一个基于位置指向您的域名记录集。通读:<一href="http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resource-record-sets-values-geo.html#rrsets-values-geo-location" rel="nofollow">http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resource-record-sets-values-geo.html#rrsets-values-geo-location
您需要选择地理位置路由和点2个地区的每个堆栈。您还需要设置一个备用的情况下,你不属于任何区域。

You need to create a record set that points your domain based on location. Read through: http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resource-record-sets-values-geo.html#rrsets-values-geo-location
You need to select the geolocation routing and point the 2 regions to each stack. You also need to set a fallback in case you don't fall in any of the regions.

另请参见:的https: //aws.amazon.com/blogs/aws/route-53-domain-reg-geo-route-price-drop/

这篇关于使用基于国家相同的URL拆分流量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆