简体   繁体   English

如何将现有域连接到AWS EC2服务器上的各个端口

[英]How to connect existing domain to various ports on AWS EC2 server

I need some help to connect these dots, if possible: 如果可能,我需要一些帮助来连接这些点:

I have an EC2 server on AWS (let's call it http://ec2-foo.compute.amazonaws.com/ ), with different servers on each port. 我在AWS上有一个EC2服务器(我们将其称为http://ec2-foo.compute.amazonaws.com/ ),每个端口上都有不同的服务器。 So: 所以:

Also, I already have a domain outside Amazon ( http://bar.com ), which links to a Wix.com website. 另外,我已经在Amazon以外的域( http://bar.com )链接到Wix.com网站。 I would like to do the following: 我要执行以下操作:

I'm new at working with DNS and I would like some help to solve this specific problem. 我刚开始使用DNS,希望获得一些帮助来解决此特定问题。 Is there a way to solve this? 有办法解决吗? Would I need to create a main server to handle this? 我需要创建一个主服务器来处理吗? Which steps from AWS documentation should I follow in order to accomplish all of this? 为了完成所有这些工作,我应该遵循AWS文档中的哪些步骤?

To accomplish this you need a webserver such as Apache to proxy incoming requests to different ports. 为此,您需要一个Web服务器(例如Apache)将传入的请求代理到不同的端口。 DNS alone is not sufficient because DNS doesn't specify destination ports. 仅DNS是不够的,因为DNS没有指定目标端口。 Take a look at this answer for an example: Apache redirect to another port 看看这个答案的示例: Apache重定向到另一个端口

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM