Hosting dynamic content inside a Discourse subfolder

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?

Something like

?

1 Like

Exactly, thanks man! Need to try this asap :slight_smile:

1 Like