# Deploying discourse on server already running another rails app

**URL:** https://meta.discourse.org/t/deploying-discourse-on-server-already-running-another-rails-app/38467
**Category:** Self-hosting
**Created:** [25 Enero, 2016 19:48 UTC](https://meta.discourse.org/t/deploying-discourse-on-server-already-running-another-rails-app/38467 "2016-01-25T19:48:34Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![adass](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adass/32/49627_2.png) [@adass](https://meta.discourse.org/u/adass)
#### Post date: [17 Febrero, 2016 11:42 UTC](https://meta.discourse.org/t/deploying-discourse-on-server-already-running-another-rails-app/38467/5 "2016-02-17T11:42:45Z")

</div>

So, I installed HAproxy and configured my discourse Docker for subfolder support. I took an [idea](https://meta.discourse.org/t/how-to-set-up-discourse-on-a-server-with-existing-apache-sites/30013) of configuring apache to listen to 8080 and docker on 8088 - not sure if it is possible to leave eg. docker on port 80 and somehow configure HAproxy to listen port 80 but route requests for subfolder docker installation to port 80. At first it seems like asking for an infinite loop, but I am not en expert with HAproxy 😊

Hovewer, my server is behing proxy blocking all outgoing internet traffic. I noticed that system assigned avatars are broken. Question now is it possible to restore this avatars with local assets or a proxy config for accessing outside of my local network?

---

_[View the full topic](https://meta.discourse.org/t/deploying-discourse-on-server-already-running-another-rails-app/38467)._
