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
asked 2 months ago118 views
3 Answers
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
EXPERT
shibata
answered 2 months ago
  • 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
EXPERT
answered 2 months ago
profile pictureAWS
EXPERT
reviewed 2 months ago
  • 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
answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions