Issue with Custom Domain on Cloudflare Pages

What is the name of the domain?

funkyao.me

What is the error number?

522&404

What is the error message?

Connection timed out Error code 522&找不到与以下网址对应的网页:https://funkyao.me/ HTTP ERROR 404

What is the issue you’re encountering

I tried to connect my custom domain funkyao.me to my Cloudflare Pages project web2-9d9.pages.dev, but I encountered a 522 error (Connection timed out) or a 404 error (Page not found) when accessing the domain. I have already set up the custom domain in the Cloudflare Dashboard, and DNS resolution shows that the domain correctly points to Cloudflare’s IP addresses, but the website is still inaccessible.

What steps have you taken to resolve the issue?

Added a CNAME record in Cloudflare DNS settings to point funkyao.me to web2-9d9.pages.dev.
Migrated from the web-ewq.pages.dev project to the new web2-9d9.pages.dev project.
Checked nslookup results to confirm that the domain resolves to Cloudflare’s IP addresses.
Configured the custom domain in the Cloudflare Pages project.
Waited for DNS propagation, but the issue persists.
Verified the deployment status, which shows as successful.

What feature, service or problem is this related to?

DNS records

Your site is returning a 404, which isn’t because of the custom domain. It probably means you don’t have an index.html file at the root of your site. The most common reason for this is that you have done a manual upload of your site files, but you uploaded a subdirectory instead of having the files at the root. If you uploaded a zip file, make sure you are creating it with the site files at the root and not in a subdirectory.

1 Like

Thanks! The problem has been solved, I should have chosen to upload all files in the folder instead of uploading the folder

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.