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
demandé il y a 7 mois199 vues
3 réponses
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
répondu il y a 7 mois
  • 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
répondu il y a 7 mois
profile pictureAWS
EXPERT
vérifié il y a 7 mois
  • 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
répondu il y a 7 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions