[英]How to config two different applications in different EC2 instances under the same domain in Route53?
I'm setting up new two servers in different EC2 instances, and want to run two different applications, one on each EC2 instance: 我要在不同的EC2实例中设置新的两台服务器,并希望运行两个不同的应用程序,每个EC2实例上一个:
3.14.23.108:8080/clients 18.23.34.23:8080/products
I need that those endpoints run under the same domain Route53: 我需要这些端点在同一域Route53下运行:
www.mydomain.com
And I expect some like this: 我希望这样:
www.mydomian.com/clients www.mydomian.com/products
I know some services of AWS like ELB, Api Gateway, and CloudFront but don't find a good example or tutorial por that. 我知道一些AWS服务,例如ELB,Api Gateway和CloudFront,但找不到很好的示例或教程。
You can use API Gateway with proxies to specific EC2 instances. 您可以将API Gateway与特定EC2实例的代理一起使用。 See https://aws.amazon.com/blogs/aws/api-gateway-update-new-features-simplify-api-development/ in the bottom search for "Use HTTP Proxy integration" and specify HTTP. 请参阅底部搜索“使用HTTP代理集成”并指定HTTP的https://aws.amazon.com/blogs/aws/api-gateway-update-new-features-simplify-api-development/ 。 Then set Route53 alias to the API Gateway. 然后将Route53别名设置为API网关。
You can setup AWS application load balancer with path base routing . 您可以使用基于路径的路由设置AWS应用程序负载均衡器。
https://docs.aws.amazon.com/elasticloadbalancing/latest/application/tutorial-load-balancer-routing.html https://docs.aws.amazon.com/elasticloadbalancing/latest/application/tutorial-load-balancer-routing.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.