How to redirect www.domain.xyz subdomains to domain.xyz in route53?

0

I have an AppRunner application (containerized) with a custom domain (domain.xyz) and I'd like to have also my subdomain www.domain.xyz to redirect to it. I tried to add an Alias (A) or a CNAME in Route53 but in both cases I get a HTTP ERROR 404. Any idea on how to fix this issue?

Remiby
질문됨 2달 전128회 조회
3개 답변
0

I think your problem is that AppRuner is not configuring your custom domain properly.

Please ensure your custom domain is set up correctly, and then check that you can connect with your domain.

https://docs.aws.amazon.com/apprunner/latest/dg/manage-custom-domains.html

profile picture
전문가
shibata
답변함 2달 전
  • I think my apprunner custom domain domain.xyz is properly configured since it is working fine.

  • Can you tell us what domain name you actually use? The best way to find out if a domain has configuration problems is to try name resolution.

    Since none of the example domains you provided use Route53, I assume you need to write about a domain that you actually use.

0

Can you share how you mapped subdomain to domain, as a CNAME should work.

If using Cloudfront, you can have a look at below: https://repost.aws/knowledge-center/route-53-redirect-to-another-domain https://medium.com/@alatech/domain-redirection-with-cloudfront-functions-32a6732d589d

profile picture
전문가
답변함 2달 전
profile pictureAWS
전문가
검토됨 2달 전
  • I shared my configuration in another answer since I cannot share image in comments

0

It is configured like this : Enter image description here I am not using CloudFront. Only AppRunner.

Remiby
답변함 2달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠