停止裸域重定向到www

编程入门 行业动态 更新时间:2024-10-10 16:18:39
本文介绍了停止裸域重定向到www的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

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

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

The problem is, an external service was using a path on the naked domain (something like domain/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:

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

    停止裸域重定向到www

    本文发布于:2023-11-01 00:45:24,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1547753.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:重定向   www

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!