# Hosting dynamic content inside a Discourse subfolder

**URL:** https://meta.discourse.org/t/hosting-dynamic-content-inside-a-discourse-subfolder/342672
**Category:** Support
**Created:** [December 16, 2024, 2:51pm UTC](https://meta.discourse.org/t/hosting-dynamic-content-inside-a-discourse-subfolder/342672 "2024-12-16T14:51:10Z")
**Posts on this page:** 3
**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: [December 16, 2024, 2:51pm UTC](https://meta.discourse.org/t/hosting-dynamic-content-inside-a-discourse-subfolder/342672/1 "2024-12-16T14:51:10Z")

</div>

From what I’ve learned so far, installing Discourse in a subfolder is not entirely impossible, but it can be quite challenging due to its specific setup requirements. It’s generally considered preferable to use Discourse on a subdomain (e.g., `forum.example.com`) rather than in a subfolder (e.g., `example.com/forum`).

However, I’m curious if it’s technically feasible to add a subfolder **inside** an existing Discourse installation to host a dynamic website. For instance, could I configure something like `forum.example.com/my-dynamic-site` where the subfolder hosts a separate web application or dynamic content?

I understand this approach is not widely recommended because of potential conflicts with Discourse’s routing, but I’d like to explore the possibilities. Are there any specific guides or methods to achieve this setup, such as using reverse proxies like Nginx or Apache to handle the routing?

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [December 16, 2024, 2:55pm UTC](https://meta.discourse.org/t/hosting-dynamic-content-inside-a-discourse-subfolder/342672/2 "2024-12-16T14:55:49Z")

</div>

Something like

> [@Run other websites on the same machine as Discourse](https://meta.discourse.org/t/run-other-websites-on-the-same-machine-as-discourse/17247/1):
>
> @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: [December 17, 2024, 5:10am UTC](https://meta.discourse.org/t/hosting-dynamic-content-inside-a-discourse-subfolder/342672/3 "2024-12-17T05:10:51Z")

</div>

Exactly, thanks man! Need to try this asap 🙂
