My username is bodo_te. I published a static site from the pages branch of bodo_te/blog. Following the announcement, it should be at https://bodo_te.codefloe.page/blog/.
The site is not reachable:
$ curl -s https://bodo_te.codefloe.page/blog/
malformed host name "bodo_te.codefloe.page"
- DNS resolves, and the TLS certificate is valid.
- The Pages server returns
HTTP/2 400 with the message above.
- Browsers reject the hostname too, because underscores are not valid in hostnames (RFC 952/1123).
https://bodo-te.codefloe.page/blog/ returns site not found, so underscores are not mapped to hyphens.
Usernames with underscores are valid on CodeFloe, so every such user is affected.
Questions:
- Is a mapping planned, for example
_ → -?
- Can a custom domain work as a workaround? The
CNAME target <username>.codefloe.page also contains the underscore.
- Is a rename of the account the only fix for now?
Thanks!
…obwohl eigentlich hier : https://codefloe.com/bodo_te/blog/settings/pages das gezeigt wird:
und obwohl ich im branch “pages” doch schon eine index.html mit “Hello Welt” gepushed habe
We’ll take a look, stay tuned!
Two issues:
- The Pages server rejected any hostname containing an underscore with
400 malformed host name. We’ve enabled underscore support on all Pages nodes.
- CodeFloe turned the
_ in your username into a - when publishing. The Pages server then looked for a repository bodo-te/blog, didn’t find one, and refused the upload. That’s why the settings page showed bodo-te.codefloe.page and “Not published yet”. The hostname now keeps your username as it is.
Your site is now live at https://bodo_te.codefloe.page/blog/. We republished it from your current pages branch, so you don’t need to do anything.
To your questions:
- No mapping is needed anymore:
bodo_te.codefloe.page is the address.
- Yes, custom domains work. Point a
CNAME at bodo_te.codefloe.page; DNS allows the underscore there.
- No rename needed.
One caveat for others reading: account or organization names that contain a dot (e.g. foo.bar) still can’t use Pages. The dot would split the hostname into two parts, and our certificate covers only one. Enabling Pages for such a name now shows an explanation instead of failing silently.