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
preguntada hace 2 meses128 visualizaciones
3 Respuestas
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
EXPERTO
shibata
respondido hace 2 meses
  • 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
EXPERTO
respondido hace 2 meses
profile pictureAWS
EXPERTO
revisado hace 2 meses
  • 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
respondido hace 2 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas