Permit static files hosting with CNAME (BB-882)

Jonathan Leroy avatarJonathan Leroy created an issue

Static files hosting as described in doesn't work with CNAME.

Comments (30)

  1. Marcus Bertrand

    I'm not sure how this issue has lived on this long, but, to our knowledge, there is no issue with this. If you are having issues using CNAMES with your account, please raise a support request to and we will personally help you resolve it.

  2. khris

    Marcus Bertrand Yes, CNAME setting is working fine. However this issue is not about CNAME but Static File Hosting with CNAME.

    See this article. There is no how to Publishing a Website on Bitbucket with CNAME(or whatever that allows using user's own custom domain).

  3. Marcus Bertrand

    My apologies, but I do not understand what you are saying is missing on this particular feature. Are you looking for more/better documentation of how the CNAME static hosting functions? Or are you looking for repository level CNAME support (a different feature)?

  4. khris

    Marcus Bertrand Although I didn't make this issue but I think this issue means "Published website should be also working with CNAME". Now CNAME setting is only working with <username>, not CNAME setting.

    Of course if Bitbucket supports repository level CNAME like Github Pages, nothing is better than it.

  5. Marcus Bertrand

    All, to clarify, this issue appears to have been for the feature request that is outlined at, which works as outlined in the document.

    Many of the comments here appear to be asking for us to support CNAMES for repositories in addition to accounts as we do now. We are tracking this feature request at #2184.

    I will mark this issue as invalid at this time. Please update #2184 with comments on adding the CNAME feature support to repositories.

  6. sud 29

    DISCLAIMER: I'm pissed off and I might start bitching.

    I spent hours configuring that damn DNS that takes hours to propagate, and finally discovered that this damn thing doesn't work. The landing is finally on the Bitbucket page, NOT on the static website.

    I know this is free and you get what you pay for. But could someone for once be clear and tell me : can I , or can I NOT use my custom domain aliasing directly the hosted static website? Because this is clearly not working.

    • I have a domain "" OK
    • I have a static website "" working
    • I used CNAME to alias to "" and that doesnt work

    And, besides, there is nothing more annoying than documentation like this :

    "If you have an existing domain you can have the landing page of its website open onto a page on Bitbucket. An example of this is!" ( Source: )

    CNAME probable nonsense

    Look, if that doesn't work, don't talk about it because this is complete nonsense. Or give some proper examples ("" is down so we can't even see what you are talking about).

    If the documentation was correct there wouldn't even be an issue.

    PS: I really do like Bitbucket, but there is one thing I do truly hate is : false promises and wasting my time.

  7. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.