Skip to content

Docs: update custom domains docs #11734

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 30 additions & 3 deletions docs/user/guides/custom-domains.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,18 @@ To setup your :doc:`custom domain </custom-domains>`, follow these steps:
#. At the top of the next page you'll find the value of the DNS record that you need to point your domain to.
For |org_brand| this is ``readthedocs.io``, and for :doc:`/commercial/index`
the record is in the form of ``<hash>.domains.readthedocs.com``.


**Once you have completed these steps and your new DNS entry has propagated (usually takes a few minutes), you need to build your project's published branches again so the Canonical URL is correct.**
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We no longer inject the canonical metatag, so this isn't relevant anymore.

If you are using Cloudflare, make sure to disable the proxy status (orange cloud) for the CNAME record.

.. note::

For a subdomain like ``docs.example.com`` add a CNAME record,
and for a root domain like ``example.com`` use an ANAME or ALIAS record.

.. warning::

If you delete a domain, make sure to also remove the DNS records for that domain.
Otherwise, another user may add the same domain to their project and serve that content from your domain (domain hijacking).

We provide a validated SSL certificate for the domain,
managed by `Cloudflare <https://www.cloudflare.com/>`_.
The SSL certificate issuance should happen within a few minutes,
Expand Down Expand Up @@ -58,13 +61,19 @@ To remove a custom domain:
#. Click on :guilabel:`Domains`.
#. Click the :guilabel:`Remove` button next to the domain.
#. Click :guilabel:`Confirm` on the confirmation page.
#. Remove the DNS record for the domain from your DNS provider.

.. warning::

Once a domain is removed,
your previous documentation domain is no longer served by Read the Docs,
and any request for it will return a 404 Not Found!

.. warning::

If you delete a domain, make sure to also remove the DNS records for that domain.
Otherwise, another user may add the same domain to their project and serve that content from your domain (domain hijacking).

Strict Transport Security (HSTS) and other custom headers
---------------------------------------------------------

Expand Down Expand Up @@ -97,6 +106,24 @@ This is `a way to boost the SEO of your website <https://moz.com/blog/subdomains
Troubleshooting
---------------

"Error 1014: CNAME Cross-User Banned" when using Cloudflare
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Read the Docs uses Cloudflare to manage SSL certificates for custom domains,
CDN caching, and other features that require the domain to be completely managed by our Cloudflare account.

If you see an "Error 1014: CNAME Cross-User Banned" message,
it means that the domain is already managed by another Cloudflare account.
To fix this, you need to:

#. Log in your Cloudflare account (https://www.cloudflare.com/).
#. Select your domain.
#. Click on "DNS".
#. Find your CNAME record and click on "Edit".
#. Uncheck the "Proxy status" (orange cloud) option.
#. Leave everything else unchanged.
#. Click on save.

SSL certificate issue delays
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
Loading