停止裸域重定向到www [英] Stopping the naked domain redirecting to www

查看:622
本文介绍了停止裸域重定向到www的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近迁移我的应用程序AWS和设置一个CNAME为www.domain.com和重定向为domain.com重定向到www.domain.com。

i recently migrated my application to AWS and setup a cname for www.domain.com and a redirect for the domain.com to redirect to www.domain.com.

现在的问题是,外部服务使用的裸体domain.com的路径(像domain.com/external/service/),但重定向所有的HTTP POST数据是被丢弃的重定向和我不能改变,外部服务调用的URL。

The problem is, an external service was using a path on the naked domain.com (something like domain.com/external/service/) But with the redirect all HTTP POST data is being dropped with the redirect and i cant change the url that the external service is calling.

要解决这个问题,我有我的设置对route53裸域指向我的弹性负载均衡器,其中我的应用程序的位置。我建立了一个A记录指向我的弹性负载均衡器使用别名。

To fix this, i have setup my naked domain on route53 to point to my elastic load balancer where my app is located. I set up an A record pointed at my elastic load balancer using an alias.

它现在已经两天我赤裸的域名仍然重定向到www。因此,外部服务出现故障。什么我可以做任何想法?

Its been two days now and my naked domain still redirects to www. and therefore the external service is down. Any ideas on what i could do?

推荐答案

我是把一个长镜头 - 有不同的可能出现的问题:

I am taking a long shot - there are different possible problems:

  1. 您通过A记录到ELB转发裸域,但您的EC2 instace(说的Apache)又是做一个重定向(而不是DNS,但HTTP 301)回WWW。
  2. 检查DNS TTL。如果TTL太大(说48小时),然后它需要该时间。你需要等待更长的时间。
  3. 是Route53全面管理您的DNS?一种可能是,别人像Godaddy的又是做DNS为你 - 所以没人接触Route53为以反映更改

这篇关于停止裸域重定向到www的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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