如何在Route53中的同一域下的不同EC2实例中配置两个不同的应用程序?

问题描述 投票:0回答:2

我在不同的EC2实例中设置了新的两台服务器,并希望运行两个不同的应用程序,每个EC2实例一个:

3.14.23.108:8080/clients 18.23.34.23:8080/products

我需要那些端点在相同的域Route53下运行:

www.mydomain.com

我希望有些像这样:

www.mydomian.com/clients www.mydomian.com/products

我知道AWS的一些服务,如ELB,Api Gateway和CloudFront,但没有找到一个好的示例或教程。

amazon-web-services amazon-ec2 amazon-route53
2个回答
0
投票

您可以将API网关与特定EC2实例的代理一起使用。请参阅底部搜索“使用HTTP代理集成”中的https://aws.amazon.com/blogs/aws/api-gateway-update-new-features-simplify-api-development/并指定HTTP。然后将Route53别名设置为API网关。


0
投票

您可以使用路径基础路由设置AWS应用程序负载均衡器。

https://docs.aws.amazon.com/elasticloadbalancing/latest/application/tutorial-load-balancer-routing.html

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.