# Installation on v-server as a subfolder with other services in subfolders using apache

**URL:** <https://meta.discourse.org/t/installation-on-v-server-as-a-subfolder-with-other-services-in-subfolders-using-apache/39731>\
**Category:** Self-hosting\
**Created:** [17 februari 2016 om 12:33 UTC](https://meta.discourse.org/t/installation-on-v-server-as-a-subfolder-with-other-services-in-subfolders-using-apache/39731 "2016-02-17T12:33:08Z")\
**Posts on this page:** 1\
**Showing post:** 35

<div class="post-metadata">

**Author:** ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)\
**Post date:** [22 februari 2016 om 10:18 UTC](https://meta.discourse.org/t/installation-on-v-server-as-a-subfolder-with-other-services-in-subfolders-using-apache/39731/35 "2016-02-22T10:18:30Z")

</div>

Hm, not good. Your configuration is probably too specific to debug this remotely, so here is some more general advice:

- You absolutely must configure your nginx to only route `/forum/` traffic to Discourse, or it will – surpsrise – route all traffic to Discourse.
- Because you followed the subfolder tutorial, Discourse now expects all requests to go to `/forum/somewhere`. Therefore, the outer nginx must _not_ strip the `/forum` from the request, or Discourse will rightfully respond with `404` errors.
- You can configure nginx to create quite extensive logs, which is key when debugging complex configurations 🙂

Also, your `proxy_pass` directive above looks fishy: nginx should speak HTTP to Discourse, not HTTPS.

---

_[View the full topic](https://meta.discourse.org/t/installation-on-v-server-as-a-subfolder-with-other-services-in-subfolders-using-apache/39731)._
