הגדר את אתר Discourse המארח שלך לפעול בכתובת השורש או בכתובת העליונה (לדוגמה example.com)

:bookmark: This guide explains how to configure a hosted Discourse site to run at the root or apex domain (for example, example.com instead of forum.example.com). The general process for changing your site’s domain name is covered in the guide for configuring your domain name for hosted Discourse.

:person_raising_hand: Required user level: Administrator

Most hosted Discourse sites run on a subdomain, such as forum.example.com, talk.example.com, or www.example.com. This is the recommended setup, and in almost all cases it works without issue.

Running your site at the root or apex domain (for example, example.com) is possible, but it’s more difficult in a hosted scenario, because of the way DNS works for root domains. This option is available on the Pro, Business, and Enterprise plans. On the Free plan, custom domains aren’t available, and your site stays on its discourse.group address.

Two things are required to run your site at a root or apex domain:

  1. Your DNS provider must support one of the record types listed below (a regular CNAME record is not enough at the root).
  2. The final configuration is completed by the Discourse team, because the Change Domain Name button in your admin dashboard checks for a CNAME record and can’t process an apex or root domain.

Configure your DNS provider

  1. Check that your DNS provider supports a record type for the root domain. If your provider isn’t listed below, you must switch to one of these providers first.
  2. Create the record described for your provider, following the link in the table for details.
  3. Contact the Discourse team at team@discourse.org to complete the root domain name change, once your DNS record is in place.

DNS providers that support root or apex domains

Provider Type
AWS Route53 (AWS only[1]) A & AAAA ALIAS records; click for example →
Cloudflare CNAME flattening. Turn off the Cloudflare proxy (the cloud icon must be gray) so it doesn’t interfere with the site
DNSimple ALIAS
DNS Made Easy ANAME
DreamHost ALIAS
easyDNS ANAME
Gandi ALIAS
Hurricane Electric ALIAS
Name.com ANAME
Namecheap ALIAS
PointDNS ALIAS
Webcentral (formerly Netregistry) Cloaked redirection (IPv4 only)

:exclamation: If your DNS provider is not listed above, switch to one that supports a root or apex record type before continuing. A regular CNAME record won’t work at the root domain.

:information_source: If you test a DNS provider that isn’t listed here and it works for your site, reply to this topic with the provider’s name and a link that explains how to set it up, so the list can be updated.


  1. this only works if you are self-hosted in AWS or on our AWS Enterprise Hosting ↩︎

Last edited by @dax 2026-09-17T19:26:49Z

Last checked by @MarkDoerr 2026-02-11T01:10:30Z

Check documentPerform check on document:
36 לייקים

A post was split to a new topic: Required DNS Settings

So it took a minute to figure out, but I managed to get my apex domain to work with Azure, where we host our DNS.

In order to use Azure you need to leverage Azure Front Door. These instructions are for Azure Front Door Standard/Premium, not Azure Front Door (classic).

  1. Navigate to Azure Front Door and click + Create
  2. Choose Azure Front Door and Custom create, and click Continue to create a Front Door.
  3. Choose your Subscription, Resource Group, Name and Tier (Standard worked for me), then click Next: Secrets.
  4. If you’re using your own SSL cert, Add it here. Once added (or if you’re letting Azure create your cert), click Next: Endpoint.
  5. Click Add an endpoint and choose a name, then click Add.
  6. Under the new “Routes” section, click Add a route. Give it a name.
  7. For “Origin group” click Add a new origin group. Give it a name.
  8. Click + Add an origin. Give it a name. For “Origin type” choose Custom. For “Host name” enter your site.hosted-by-discourse.com domain. Make sure “Origin host header” is blank. Click Add.
  9. Click Add in the “Add an origin group” dialog.
  10. Click Add in the “Add a route” dialog.
  11. Click Review + create. Click Create.
  12. Wait for the AFD to deploy. Once it’s deployed click Go to resource.
  13. On the left side menu choose Domains. Click Add a domain.
  14. For “DNS zone” choose the zone your domain is in. Under “Custom domain” pick your domain in the APEX section. Click Add.
  15. When your domain appears in the list, click the on the right. Choose Associate.
  16. Select the endpoint and route you created earlier. Click Associate.

If you’re using an AFD Managed Certificate

  1. If the “Validation state” of your domain is Pending, click that link. Choose Minutes for the “TTL Unit” (for quick validation), then click the Add button under “DNS record status”.
  2. BE PATIENT. This is where I spent too much time pulling out my hair, but you need to wait. Eventually your “Validation state” should change to Approved.
  3. You may have to Regenerate and update the TXT DNS Record. You can do this by clicking the Regenerate button. You’ll need to click the Update button under “DNS record status” once it appears.
לייק 1

FYI for anyone following this: This setup isn’t flattening DNS, it’s configuring a load balancer in Azure to proxy the origin.

This is not officially supported as is since it’ll have side effects (all visitors will come from an Azure IP, not their actual IP)

2 לייקים