# 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.Февраль.2016 12:33:08 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:** 19

<div class="post-metadata">

### Author: ![JohnDoe1](https://avatars.discourse-cdn.com/v4/letter/j/13edae/32.png) [@JohnDoe1](https://meta.discourse.org/u/JohnDoe1)
#### Post date: [21.Февраль.2016 14:49:39 UTC](https://meta.discourse.org/t/installation-on-v-server-as-a-subfolder-with-other-services-in-subfolders-using-apache/39731/19 "2016-02-21T14:49:39Z")

</div>

That was it! It works. Thank you so much!

The activation link still starts with “[http://http](http://http)://…”, could this be caused by discourse.conf in the nginx/conf.d? I copied it from the howto on Running other websites on the same machine as Discourse, only altering the server\_name.

Or could this be caused by my nginx “sites-enabled”? The “location ~ .php$”-part ended up beeing a mix out of “How To Configure Nginx as a Reverse Proxy for Apache” ([https://www.digitalocean.com/community/tutorials/how-to-configure-nginx-as-a-reverse-proxy-for-apache](https://www.digitalocean.com/community/tutorials/how-to-configure-nginx-as-a-reverse-proxy-for-apache)) and “Running other websites on the same machine as Discourse” ([Run other websites on the same machine as Discourse](https://meta.discourse.org/t/running-other-websites-on-the-same-machine-as-discourse/17247)):

`location ~ \.php$ { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Host $host; proxy_pass http://unix:/var/discourse/shared/standalone/nginx.http.sock:; proxy_set_header Host $http_host; proxy_http_version 1.1; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; }`

---

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