aws-amplify / amplify-hosting

AWS Amplify Hosting provides a Git-based workflow for deploying and hosting fullstack serverless web applications.
https://aws.amazon.com/amplify/hosting/
Apache License 2.0
461 stars 116 forks source link

custom domain gives error: DNS_PROBE_FINISHED_NXDOMAIN #3859

Closed xkeshav closed 11 months ago

xkeshav commented 11 months ago

Before opening, please confirm:

App Id

arn:aws:amplify:ap-south-1:073532590105:apps/daq7xv6udp9ox

Region

ap-south-1

Step

custom domain redirect issue

Status

DNS_PROBE_FINISHED_NXDOMAIN

Issue or question

I have custom domain which is added in route53 and all domain verification done and on AWS amplify dashboard also display that it is available but when I click on domain the page does not open but gives error while with random subdomain of aws.amplifyapp.com ( which is default when build done ) was working fine

can you please tell me what is missing here

This site can’t be reachedCheck 

DNS_PROBE_FINISHED_NXDOMAIN

I have added one redirect rule below 2 rules ( which comes by default )

[
    {
        "source": "https://recursivezero.com",
        "target": "https://www.recursivezero.com",
        "status": "301",
        "condition": null
    },
    {
        "source": "https://recursivezero.com",
        "target": "https://www.recursivezero.com",
        "status": "301",
        "condition": null
    },
    {
        "source": "/<*>",
        "target": "/index.html",
        "status": "200",
        "condition": null
    }
]

Error message

custom domain doesnt' load

Additional information

this app using Astro v 4 which require node 18 so custom image amplify:al2023 is used

xkeshav commented 11 months ago

I have fixed this after changing rewrite rule

Source address Target Address Type
/<*> /index.html 404 (Rewrite)
github-actions[bot] commented 11 months ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.

github-actions[bot] commented 11 months ago

This issue has been automatically locked.