# Creating subdirectories in a Discourse hosting environment

**URL:** https://meta.discourse.org/t/creating-subdirectories-in-a-discourse-hosting-environment/371231
**Category:** Self-hosting
**Created:** [June 22, 2025, 12:35pm UTC](https://meta.discourse.org/t/creating-subdirectories-in-a-discourse-hosting-environment/371231 "2025-06-22T12:35:21Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![MihirR](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mihirr/32/475158_2.png) [@MihirR](https://meta.discourse.org/u/MihirR)
#### Post date: [June 22, 2025, 12:35pm UTC](https://meta.discourse.org/t/creating-subdirectories-in-a-discourse-hosting-environment/371231/1 "2025-06-22T12:35:22Z")

</div>

Is there any documentation on creating a subdirectory in the same instance where Discourse is hosted?

For example, let’s say my forum is running on [example.com](http://example.com), and I would like to host some other files on [example.com/custom](http://example.com/custom).

PS: Not just some static pages.

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [June 22, 2025, 2:05pm UTC](https://meta.discourse.org/t/creating-subdirectories-in-a-discourse-hosting-environment/371231/2 "2025-06-22T14:05:26Z")

</div>

is this what you are looking for?

> [@Run other websites on the same machine as Discourse](https://meta.discourse.org/t/run-other-websites-on-the-same-machine-as-discourse/17247):
>
> @pfaffman edited this heavily 2022.02.24. Blame me if it’s broken. If you want to run other websites on the same machine as Discourse, you need to set up an extra NGINX or HAProxy proxy in front of the Docker container. NOTE: This is for advanced admins This guide assumes you already have Discourse working - if you don’t, it may be hard to tell whether or not the configuration is working. You cannot use ./discourse-setup to set up Discourse if another server is using port 80 or 443. You will…

---

<div class="post-metadata">

### Author: ![MihirR](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mihirr/32/475158_2.png) [@MihirR](https://meta.discourse.org/u/MihirR)
#### Post date: [June 23, 2025, 8:27am UTC](https://meta.discourse.org/t/creating-subdirectories-in-a-discourse-hosting-environment/371231/3 "2025-06-23T08:27:23Z")

</div>

Thank you, was actually looking for the same.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [July 23, 2025, 8:27am UTC](https://meta.discourse.org/t/creating-subdirectories-in-a-discourse-hosting-environment/371231/4 "2025-07-23T08:27:43Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
