在不同端口上的Route 53记录集 [英] Route 53 Record Set on Different Port

查看:118
本文介绍了在不同端口上的Route 53记录集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一个红宝石开发人员,我刚刚开始学习一些Node.js。

I'm a ruby dev and I just started to learn some Node.js.

我正在 AWS 上运行实例托管我的 rails 应用,让乘客和nginx在 80端口上监听。

I'm running an instance on AWS to host my rails apps with passenger + nginx listening on port 80.

现在我想托管一个 node.js 应用在同一实例(t1-micro)上,并使其在端口8000 上监听。

Now I would like to host a node.js app on the same instance (t1-micro) and put it to listen on port 8000.

如何使用Route 53创建记录集,以将 subdomain.domain.com 指向 my.ip:8000

How can I use Route 53 to create a Record Set to point a subdomain.domain.com to my.ip:8000?

我已经尝试设置指向my.ip:8000的IPV4记录,但没有成功。

I already tried setting an IPV4 record pointing to my.ip:8000 with no success.

任何人都知道我在做什么错吗?

Any idea what I'm doing wrong?

我可以使用Nginx服务我的nodejs应用程序吗?

Can I use nginx to serve my nodejs apps?

推荐答案

通过 S3重定向可以实现。使用名称

subdomain.domain.com

此存储桶无需公开。然后,在属性中打开静态网站托管,然后选择重定向响应选项,并使用以下选项进行配置

This bucket does not need to be public. Then, turn on Static Website Hosting in Properties and choose the Redirect response option and configure it with the following options

Target bucket or domain: my.ip:8000
Protocol: Leave this blank

然后转到 Route53 并使用以下配置创建记录集

Then go to Route53 and create a Record Set with the following configuration


  • 名称: subdomain.domain.com

  • 类型: A-IPv4地址

  • 别名:

  • 别名目标:选择您刚刚在S3中创建的存储桶。如果它没有出现,请等待它出现。

  • 路由策略:简单

  • 评估目标运行状况:

  • Name: subdomain.domain.com
  • Type: A-IPv4 address
  • Alias: Yes
  • Alias Target: Choose the bucket you just created in S3. If it does not appear wait for it to appear.
  • Routing Policy: Simple
  • Evaluate Target Health: No

就是这样,您应该可以访问 subdomain.domain。 com 并看到更改大约在30秒后生效。祝你好运!

And that's it, you should be able to go to subdomain.domain.com and see the changes take effect after roughly 30 seconds. Best of luck!

这篇关于在不同端口上的Route 53记录集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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