# 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:** [Fevereiro 17, 2016, 12:33pm 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:** 30

<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:** [Fevereiro 22, 2016, 8:18am UTC](https://meta.discourse.org/t/installation-on-v-server-as-a-subfolder-with-other-services-in-subfolders-using-apache/39731/30 "2016-02-22T08:18:17Z")

</div>

Oops, I forgot to clean up that path 🙂

As the other paths are on the same hostname as far as I understand, you want to add blocks like this to the same `server` block:

```nginx
        location /example/ {
                proxy_pass http://localhost:8080/example/;
                proxy_redirect http://domain.com/example/ https://domain.com/example/;
                proxy_redirect http://domain.com:8080/example/ https://domain.com/example/;
                proxy_set_header Host $host;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header X-Forwarded-Proto $scheme;
        }

```

You may have to experiment with these a bit, especially the `proxy_redirect` ones. You can read up details [in the nginx documentation](http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_redirect).

---

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