简体   繁体   English

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

[英]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.

相关问题 我需要route53将域绑定到ec2吗? - do I need route53 to bind domain to ec2? 如何为在 aws ec2 实例上启动并使用 route53 连接到域的 nodejs 获取 https - How to get https for nodejs launched on aws ec2 instance and connected to domain using route53 在 AWS Route 53 中的一个父域下设置多个 EC2 实例和多个子域 - Setting up multiple EC2 instances and multiple subdomain under one parent domain in AWS Route 53 对所有 Route 53 域名进行排序并与 EC2 实例进行比较 - Sorting All Route 53 Domain Names and Comparing with EC2 Instances 使用两个PHP应用程序将两个不同的URL路由到同一ec2实例 - Route two different URL to the same ec2 instance with two php applications AWS Route 53-Elastic Beanstalk EC2和S3都在同一域下吗? - AWS Route 53 - Elastic Beanstalk EC2 and S3 all under the same domain? 将www.domain.com和domain.com与EC2和Route53一起使用 - Use www.domain.com and domain.com with EC2 and Route53 使用Route53在两个不同子域的同一AWS实例中运行两个流星应用 - Running two meteor apps in the same aws instance on two different sub-domains using Route53 按Hostrecord(Route53 :: RecordSet)对aws-cli ec2 describe-instances的输出进行排序 - Sort output of aws-cli ec2 describe-instances by Hostrecord (Route53::RecordSet) AWS EC2 实例 IP 未通过 Route53 指向的域解析 - AWS EC2 instance IP not resolving by Route53 pointed domain
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM