# How to map Discourse Self Hosted to another Domain

**URL:** https://meta.discourse.org/t/how-to-map-discourse-self-hosted-to-another-domain/74528
**Category:** Self-hosting
**Created:** [11월 21, 2017, 5:16오후 UTC](https://meta.discourse.org/t/how-to-map-discourse-self-hosted-to-another-domain/74528 "2017-11-21T17:16:38Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Aniket\_Singh](https://avatars.discourse-cdn.com/v4/letter/a/91b2a8/32.png) [@Aniket\_Singh](https://meta.discourse.org/u/Aniket_Singh)
#### Post date: [11월 21, 2017, 5:16오후 UTC](https://meta.discourse.org/t/how-to-map-discourse-self-hosted-to-another-domain/74528/1 "2017-11-21T17:16:39Z")

</div>

I have installed Discourse on a separate Azure Virtual machine with 7GB Ram Server because on my main server i have apache with PHP and many more application, So now for e.g, my discourse is on community . example . com and main website is example2 . com.

How can i map Discourse website on [example2.com](http://example2.com) Such as if open forum . example2 . com will eventually show community . example . com

I added CNAME record but it redirected me to community . example . com.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [11월 21, 2017, 5:19오후 UTC](https://meta.discourse.org/t/how-to-map-discourse-self-hosted-to-another-domain/74528/2 "2017-11-21T17:19:54Z")

</div>

Run `discourse-setup` again and enter the domain name that you want your Discourse to respond to.

---

<div class="post-metadata">

### Author: ![Aniket\_Singh](https://avatars.discourse-cdn.com/v4/letter/a/91b2a8/32.png) [@Aniket\_Singh](https://meta.discourse.org/u/Aniket_Singh)
#### Post date: [11월 21, 2017, 5:22오후 UTC](https://meta.discourse.org/t/how-to-map-discourse-self-hosted-to-another-domain/74528/3 "2017-11-21T17:22:31Z")

</div>

Will that work @pfaffman ? if they are on different server?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [11월 21, 2017, 5:33오후 UTC](https://meta.discourse.org/t/how-to-map-discourse-self-hosted-to-another-domain/74528/4 "2017-11-21T17:33:05Z")

</div>

Yes. As long as they are different names ([community.example.com](http://community.example.com), [www.example.com](http://www.example.com), and [example.com](http://example.com) are all different), there is no problem.

---

<div class="post-metadata">

### Author: ![Aniket\_Singh](https://avatars.discourse-cdn.com/v4/letter/a/91b2a8/32.png) [@Aniket\_Singh](https://meta.discourse.org/u/Aniket_Singh)
#### Post date: [11월 21, 2017, 5:34오후 UTC](https://meta.discourse.org/t/how-to-map-discourse-self-hosted-to-another-domain/74528/5 "2017-11-21T17:34:44Z")

</div>

okay let’s try. let me tell you currently discourse is on [community.example.com](http://community.example.com) and i want it on [forums.example.com](http://forums.example.com).

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [11월 21, 2017, 5:40오후 UTC](https://meta.discourse.org/t/how-to-map-discourse-self-hosted-to-another-domain/74528/6 "2017-11-21T17:40:39Z")

</div>

I don’t understand. Was my example wasn’t clear because I didn’t include [forums.example.com](http://forums.example.com) as an example host name? If they have different names, it’s fine. Just re-run `discourse-setup` and use the name that you want for Discourse.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [6월 8, 2024, 12:43오후 UTC](https://meta.discourse.org/t/how-to-map-discourse-self-hosted-to-another-domain/74528/7 "2024-06-08T12:43:52Z")

</div>

이 주제는 2390일 후 자동으로 닫혔습니다. 더 이상 답변을 할 수 없습니다.
