Configure your hosted Discourse site to run at the root or apex domain (e.g. example.com)

Most hosted discourse instances are on a subdomain:

forum.example.com
talk.example.com
www.example.com

This is our general recommendation in almost all cases, and it works great. However, if you wish to use a root domain or apex domain for your hosted discourse, like so

example.com

this turns out to be surprisingly difficult in a hosting scenario, due to the vagaries of how DNS works. :thinking:

It is possible, however, you must use a DNS provider that specifically supports it!

DNS provider documentation

Here is a list of known-compatible DNS providers, the name of the DNS type that you should use, and a link to their docs.

Provider Type
AWS Route53 (AWS only[1]) A & AAAA ALIAS records; click for example →
CloudFlare CNAME flattening · Cloudflare DNS docs
DNSimple ALIAS
DNS Made Easy ANAME
DreamHost ALIAS
easyDNS ANAME
Gandi ALIAS
Hurricane Electric ALIAS
Name ANAME
Namecheap ALIAS
Webcentral (formerly Netregistry) Cloaked Redirection (IPv4 only)
PointDNS ALIAS

If your DNS provider is not one of the above, you must switch to one of these DNS providers to achieve an apex domain or root domain hosted discourse.

:exclamation: If you try/test out another DNS provider and it works for you, do reply here with the name of the DNS provider, and a link that explains how they set it up, so we can update our list. There are a lot of DNS providers, so we update the list as we find, this list is by no way a one-stop-list of every DNS provider in the world that supports this.


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

Last edited by @dax 2026-03-13T11:58:09Z

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

Check documentPerform check on document:
36개의 좋아요

게시물이 새 주제로 분리되었습니다: Required DNS Settings

좀 시간이 걸렸지만, 결국 Azure에서 DNS를 호스팅하는 환경에서 내 APEX 도메인을 작동시키는 방법을 찾았습니다.

Azure를 사용하려면 Azure Front Door를 활용해야 합니다. 이 안내문은 Azure Front Door Standard/Premium에 대한 것이며, Azure Front Door (classic)에는 해당하지 않습니다.

  1. Azure Front Door로 이동하여 + Create를 클릭합니다.
  2. Azure Front DoorCustom create를 선택한 후, Continue to create a Front Door를 클릭합니다.
  3. 구독(Subscription), 리소스 그룹(Resource Group), 이름(Name) 및 티어(Tier)를 선택합니다(저에게는 Standard가 작동했습니다). 그런 다음 Next: Secrets를 클릭합니다.
  4. 자체 SSL 인증서를 사용하는 경우 여기에 추가합니다. 추가된 후(또는 Azure가 인증서를 생성하도록 하는 경우) Next: Endpoint를 클릭합니다.
  5. Add an endpoint를 클릭하고 이름을 선택한 다음 Add를 클릭합니다.
  6. 새로 생성된 “Routes” 섹션에서 Add a route를 클릭합니다. 이름을 지정합니다.
  7. "Origin group"에서 Add a new origin group를 클릭합니다. 이름을 지정합니다.
  8. + Add an origin를 클릭합니다. 이름을 지정합니다. "Origin type"에서 Custom을 선택합니다. "Host name"에 site.hosted-by-discourse.com 도메인을 입력합니다. "Origin host header"가 비어 있는지 확인합니다. Add를 클릭합니다.
  9. “Add an origin group” 대화 상자에서 Add를 클릭합니다.
  10. “Add a route” 대화 상자에서 Add를 클릭합니다.
  11. Review + create를 클릭합니다. Create를 클릭합니다.
  12. AFD가 배포되기를 기다립니다. 배포가 완료되면 Go to resource를 클릭합니다.
  13. 왼쪽 사이드 메뉴에서 Domains를 선택합니다. Add a domain을 클릭합니다.
  14. "DNS zone"에서 도메인이 속한 존을 선택합니다. “Custom domain” 아래에서 APEX 섹션에 있는 도메인을 선택합니다. Add를 클릭합니다.
  15. 목록에 도메인이 표시되면 오른쪽의 **…**을 클릭합니다. Associate를 선택합니다.
  16. 이전에 생성한 엔드포인트와 라우트를 선택합니다. Associate를 클릭합니다.

AFD Managed Certificate를 사용하는 경우

  1. 도메인의 "Validation state"가 Pending인 경우 해당 링크를 클릭합니다. "TTL Unit"에서 Minutes를 선택합니다(빠른 검증을 위해). 그런 다음 “DNS record status” 아래의 Add 버튼을 클릭합니다.
  2. 인내심을 가져야 합니다. 여기서 머리를 쥐어뜯으며 너무 많은 시간을 보냈지만, 기다려야 합니다. 결국 "Validation state"가 Approved로 변경되어야 합니다.
  3. TXT DNS 레코드를 재생성하고 업데이트해야 할 수 있습니다. Regenerate 버튼을 클릭하여 이를 수행할 수 있습니다. “DNS record status” 아래에 Update 버튼이 표시되면 클릭해야 합니다.
1개의 좋아요

이 내용을 참고하는 분들을 위해 안내드립니다: 이 설정은 DNS를 평탄화(flattening)하는 것이 아니라, Azure에서 로드 밸런서를 구성하여 오리지널 서버를 프록시하는 것입니다.

이 방식은 공식적으로 지원되지 않습니다. 부수적인 영향이 발생하기 때문입니다(모든 방문자의 IP가 실제 IP가 아닌 Azure IP로 나타남).

2개의 좋아요