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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南