Currently, CNAME support is only for user/team accounts. This should be expanded to support repositories directly. This should support both regular repositories and the static hosted repositories (as documented here).
Technically you're not supposed to add CNAMEs in the root of your DNS. If you run your own DNS service you might be able to do it. However, I've never seen any host DNS providers allow it. I don't think there's anything in Bitbucket that would prevent you from doing this.
In GitHub's implementation, you just need to add a file CNAME, that contains your custom domain. Also take note, it was mention for subdomains is to use CNAME, while if you want to use your root, then you'll use A record. But this is irrelevant to what you are pointing out.
So I just want to bring this up again, if there's a way to use your custom domain and/or subdomain to point to bitbucket page (your-user-name.bitbucket.org).
+1 for this feature request! Hosting a static website at my_username.bitbucket.org isn't terribly useful from a branding perspective, whereas hosting a website at www.mydomain.com would be tremendously useful.
It would be great to be able to use custom domain for http://yourusername.bitbucket.org sites. I suppose this is similar to <<issue 2025>>, but I'd like to be able to point the actual domain, not just a subdomain, for example, access aarddict.bitbucket.org as aarddict.org.
I'd have loved to host my site at bitbucket, but it looks like I'm going to have to look at other options. I'd like to avoid github so that probably means a VPS or shared hosting (ugh!)
Having cname aliases for <username>.bitbucket.org would be great to have and wouldn't break compatibility with having a user page there: If there's no static site repo named <username>.bitbucket.org, just show the user overview page, otherwise show the static site.
i second that, i would also like to see this feature implemented. when only this feature will appear at BB, i'll disappear from GH for good with all my stuff...and i really hope that it will be soon. i would like to finally have all of my professional and private repositories in one place - the place which I like the most ;)
Thanks for looking into that David. Let's go ahead and see if we can make this issue more accurately reflect what I believe to be a large amount of support for this feature. I'll ask the other people I know that use Bitbucket and Github if this is something that they think would make Bitbucket more attractive.
Joah, I believe this issue is about hosting a static website on bitbucket and having your custom domain point to it, not redirecting people from your bitbucket page to another website hosted elsewhere.
As far as I know, there is still no way to do the former.
+1 Yeah, moving some stuff to Github tonight or tomorrow. I really should pay for some services, but I'll be honest, it's just a blog and I'm a bit cheap. Corporate is paying for some Github stuff anyway.
At this time we do not have an estimate for when this feature will be implemented. Our focus for the short to medium term, will be to provide SSO and better user management with our OnDemand JIRA and Confluence products. I would estimate that the SSO integration and bi-directional oAuth integration between Bitbucket / JIRA / Confluence / Bamboo will take us well into 2014, at which time we will re-evaluate this decision.
Voted. But note: I'm using GitHub Pages instead, precisely because of this, and accordingly if it comes down to wanting to pay for one or the other at this point, I'm much more likely to pay for GitHub.
I don't work for Atlassian so this comes with exactly no guarantees of uptime or support from me or, obviously, Atlassian, but here's a stop-gap solution for those looking for repo cnames: https://bitbucket.org/ruppells/bbpages/overview
If I get too much traffic thru it tho it'll turn itself off so if anyone thinks they'll be hosting anything traffic heavy let me know first.
If you find any problems I like pull requests but I'll look at issues against the repo too.
I am a GitHub user who just resurrected my Bitbucket account in order to deploy my blog/home site. I rebuilt my GitHub Pages project to deploy static HTML to Bitbucket, only to find custom domain names aren't supported. Highly disappointed, I am returning to GitHub exclusively.
Oh man this totally sucks. I just spent last two days waiting to configure custom domain to realize there is an issue on this for the past 4 years. Seriously?!?! Sigh.. moving to github. Lucas Connors thanks so much for detailed instructions on moving over :)
Here’s the short answer, made obvious by this and any number of other issues: Atlassian’s not in the least interested in responding to actual expressed customer demand. Why not, I have no idea. But—much as it makes me sad, given my love for Mercurial and Google Code’s recent shuttering—I’m going to be migrating all my repositories from here to a mix of GitHub (and maybe GitLab if I need more private repos for things that don’t make money). Both of those services are clearly run by companies that listen closely to their users; Bitbucket (and JIRA and the rest of the suite) may be all right for massive enterprise operations, but for small businesses, they’re a bad bargain. I’m out. Adios.
One of the main reasons for CNAME deprecation is that of security. CNAME traffic is not encrypted and it is not a reasonable option to obtain an SSL certificate for every CNAME, as we do not actually own those domain. All traffic over CNAMEs is in plain text. We made Bitbucket HTTPS only years ago and from that point onwards we should have deprecated CNAMEs.
Removing our current CNAME support is the current course of action, but this is something (in particular with hosted static repos) that we would like to revisit in the future.
Right now Bitbucket seems to have just an EV certificate for (www.)?bitbucket.org, as there isn't normally wildcard support for these. For hosted static repos I guess they would have to get another one for *.bitbucket.org.
Having to create an account for every new static site is kind of awkward. And TLS support would be a cool extra, at least without custom domain. I like Hg better, but I'm willing to move my projects to a Git-based server just to get around this.
As this particular issue conflated those two feature requests, we will be closing this issue as won't fix to help disambiguate the users who were looking for static hosting via CNAMEs and the users who were looking to have a CNAME load the Bitbucket UI under their domain. We encourage you to vote on the new static hosted CNAME feature if this is something you wish to see on Bitbucket in the future.
As always, if you have any specific questions or concerns, please feel free to raise them directly to us at email@example.com.
I really want this feature. Or something similar. My code is hosted on bitbucket and is commented through doxygen. I want the doxygen pages to be private and only visible to folks who have access to the code. Right now, the only way I can do that is to load up the doxygen output into the repo, and recommend that folks clone the repo and run a browser over the doxygen directory. My gut tells me this is not that difficult but that's without knowing any the details of how the bitbucket site is implemented. Perhaps another menu item other then wiki that directs a browser to a directory within the repo.
Another option would be to support doxygen within bitbucket. Have bitbucket automatically generate doxygen html output from the code in a repository. I could understand that this is a bit more complicated.
There were other comments on the web about using a converter from latex to md but that doesn't translate links. Which effectively makes the translator useless.
I would pay for this option. It would allow me to present a portal to our product.