# Install Discourse into domain.com/forums

**URL:** https://meta.discourse.org/t/install-discourse-into-domain-com-forums/65596
**Category:** Self-hosting
**Created:** [July 4, 2017, 3:38pm UTC](https://meta.discourse.org/t/install-discourse-into-domain-com-forums/65596 "2017-07-04T15:38:53Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![floren](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/floren/32/120879_2.png) [@floren](https://meta.discourse.org/u/floren)
#### Post date: [July 4, 2017, 3:38pm UTC](https://meta.discourse.org/t/install-discourse-into-domain-com-forums/65596/1 "2017-07-04T15:38:53Z")

</div>

Hi,

During the installation, I’m asked for `Hostname for your Discourse? [discourse.example.com]`. I would like to use the existing **[domain.com](http://domain.com)** hostname, and serve Discourse from **/forums** directory. I have a blog into /, which I plan to replace also with a [Hugo based blog](https://gohugo.io/).

Can you let me know what approach I should use?

Regards,

Floren Munteanu

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [July 4, 2017, 3:47pm UTC](https://meta.discourse.org/t/install-discourse-into-domain-com-forums/65596/2 "2017-07-04T15:47:36Z")

</div>

Please follow:

> [@Serve Discourse from a subfolder (path prefix) instead of a subdomain](https://meta.discourse.org/t/subfolder-support-with-docker/30507):
>
> warning Discourse Official Statement about Subfolder setup We support subfolder setups for our hosted customers at the enterprise level and up. Due to heavy technical setup complexity we strongly recommend you do not use this setup unless you are very experienced in custom subfolder setups. It is critical you have a deep understanding of NGINX setup in the Discourse Docker container Secure original IP forwarding using custom headers in the proxy chain Rate limiting in front proxy server I…

---

<div class="post-metadata">

### Author: ![floren](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/floren/32/120879_2.png) [@floren](https://meta.discourse.org/u/floren)
#### Post date: [July 4, 2017, 5:46pm UTC](https://meta.discourse.org/t/install-discourse-into-domain-com-forums/65596/3 "2017-07-04T17:46:19Z")

</div>

Thank you @Falco, much appreciated! I presume I will answer for `Hostname for your Discourse? [discourse.example.com]: www.domain.com`, and set `DISCOURSE_RELATIVE_URL_ROOT: /forum`?

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [July 9, 2017, 8:16am UTC](https://meta.discourse.org/t/install-discourse-into-domain-com-forums/65596/4 "2017-07-09T08:16:02Z")

</div>


