简体   繁体   English

亚马逊EC2弹性IP重定向不起作用

[英]amazon ec2 elastic ip redirecting not wroking

I've registered domain with bigrock.in 我已经在bigrock.in注册域名

  1. Created ec2 instance in aws 在AWS中创建EC2实例
  2. created elastic ip 创建弹性ip
  3. registered with route53 and gave my domain name 在route53注册并提供了我的域名
  4. changed the name servers in bigrock with the provided names in bigrock 使用bigrock中提供的名称更改了bigrock中的名称服务器
  5. ssh to the ec2 instance with elastic ip ssh到具有弹性ip的ec2实例
  6. ran node.js app with forever with the following environemnt variables 永远使用以下环境变量运行node.js应用

    export ROOT_URL="www.domain.com"

at the time of route53 process, I created A record with www sub-domain to elasticIp 在route53处理时,我创建了一个带有www子域的E记录到elasticIp

But, I'm not seeing anything at domain.com or at elasticIp xxx.xxx.xxx.xxx 但是,我在domain.com或elasticIp xxx.xxx.xxx.xxx没有看到任何内容

Did I miss any steps, Is there anything wrong I did or do I need to do anything to make this works 我错过了任何步骤吗,我做错了什么吗?

EDIT 编辑

I haven't added any A or CNAME records to bigrock just changed the name server to the servers provided by ROuter53 我没有向bigrock添加任何A或CNAME记录,只是将名称服务器更改为ROuter53提供的服务器

Edit 2 编辑2

that is my security group outbound details, My app is running on port 80. Are those settings correct? 这是我的安全组出站详细信息,我的应用程序在端口80上运行。这些设置正确吗? 在此处输入图片说明

EDIT 3 My INbound rules 编辑3我的入站规则 在此处输入图片说明

You've got a rule to allow all traffic from anywhere on the INBOUND security groups so its not that (make sure you fix this later when you get it working - as it is, its a bit of a security hole). 您已经有了一条规则,允许来自INBOUND安全组中任何位置的所有流量都不允许这样做(请确保稍后在工作时进行修复-这样做确实有点安全漏洞)。

Next thing I would normally say is its a dns problem, but as you say you've tried going to the eip as well as the domain name its not that either. 我通常要说的第二件事是它的dns问题,但是正如您所说的,您尝试使用eip以及域名也不是。

Next likely candidates are: 下一个可能的候选人是:

  • The server isnt listening - it may be that it hasnt started properly try checking the logs, 服务器没有监听-可能是服务器没有正确启动,请尝试检查日志,
  • The machine's firewall is blocking connections. 机器的防火墙正在阻止连接。 (try turning it off - keep this at VERY short time length though - its a huge risk in combination with your security group settings) (尝试将其关闭-将此时间设置为非常短的时间-与您的安全组设置结合使用会带来巨大的风险)
  • Or your server is not listening on port 80, eg it might be listening on 8080 or 443. Check the server config - by default browsers assume port 80 for http, if its not listening on that you will have to specify the port in the address bar as well eg http://example.com:8080 或您的服务器未在端口80上侦听,例如,它可能正在8080或443上侦听。检查服务器配置-默认情况下,浏览器假定端口80为http,如果服务器未侦听,则必须在地址中指定端口栏,例如http://example.com:8080

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

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