Pages - custom domain inheritance #200612
-
🏷️ Discussion TypeQuestion 💬 Feature/Topic AreaPages BodyHello, My configuration:
"404 The site configured at this address does not contain the requested file. If this is your site, make sure that the filename case matches the URL as well as any file permissions. Read the full documentation for more information about using GitHub Pages."
What am I missing? Thank you in advance for any help! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
The key thing that trips people up: for a project repo to inherit the org's custom domain, Pages still needs to be enabled and actively publishing on that repo — you just don't set a custom domain value there. If Pages got turned off on thl-site-feedback when you removed its custom domain, there's nothing for GitHub to serve at that path — hence the branded 404 (it's hitting Pages infra, just finding no site). Check: thl-site-feedback → Settings → Pages → make sure a publishing source is set and Pages shows as active/built. Don't re-add a CNAME or custom domain there — that's the umbrella repo's job only. Also confirm the umbrella repo's Pages build is actually succeeding, since it's the one carrying the domain config others inherit. If Pages is already on and building there and it still 404s, that's unusual — worth a support ticket, since it'd suggest a propagation bug rather than a config issue. |
Beta Was this translation helpful? Give feedback.
-
|
Hey! The problem is the name of your umbrella repo. For the custom-domain inheritance to kick in, the umbrella repo has to be named the-hotline.github.io — not just the-hotline. Only the repo matching .github.io is treated as the organization Pages site, and that's the one whose custom domain gets shared with sibling project repos. Right now the-hotline is just a regular project repo that happens to have a CNAME, so nothing propagates — which is why your .js file 404s. Try this: Rename the-hotline → the-hotline.github.io (keep the CNAME with cdn.thehotline.us inside). Hope that unblocks you! |
Beta Was this translation helpful? Give feedback.
-
|
I think there may be a misunderstanding about how GitHub Pages handles custom domains. The repository named after your organization (e.g. Project Pages (
or, if they have their own custom domain configured, at that custom domain. A custom domain configured on the organization site isn't inherited by project sites. That's why A few things to check:
If you can share the URLs for both the organization Pages site and the project Pages site, it would be easier to determine whether this is a Pages configuration issue or a DNS/proxy issue. |
Beta Was this translation helpful? Give feedback.
Hey! The problem is the name of your umbrella repo.
For the custom-domain inheritance to kick in, the umbrella repo has to be named the-hotline.github.io — not just the-hotline. Only the repo matching .github.io is treated as the organization Pages site, and that's the one whose custom domain gets shared with sibling project repos.
Right now the-hotline is just a regular project repo that happens to have a CNAME, so nothing propagates — which is why your .js file 404s.
Try this:
Rename the-hotline → the-hotline.github.io (keep the CNAME with cdn.thehotline.us inside).
In thl-site-feedback: enable Pages, but leave the custom domain blank and don't add a CNAME file.
Give it a minute, then h…