# Discourse Docker + Other Rails App on the same droplet

**URL:** <https://meta.discourse.org/t/discourse-docker-other-rails-app-on-the-same-droplet/23673>\
**Category:** Self-hosting\
**Tags:** hosting\
**Created:** [2015 年1 月 5 日 07:23 UTC](https://meta.discourse.org/t/discourse-docker-other-rails-app-on-the-same-droplet/23673 "2015-01-05T07:23:36Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

作者： ![featheredtoast](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/featheredtoast/32/116994_2.png) [@featheredtoast](https://meta.discourse.org/u/featheredtoast)\
发布日期： [2015 年1 月 6 日 09:15 UTC](https://meta.discourse.org/t/discourse-docker-other-rails-app-on-the-same-droplet/23673/3 "2015-01-06T09:15:36Z")

</div>

It is also doable with nignx as well, using multiple server {} blocks, and matching the proxy by server\_name.

something like:

```
server {
  listen 80;
  server_name www.mysite.com;
  location / {
    proxy_pass http://localhost:4567/; #your rails app port
  }
}
server {
  listen 80;
  server_name forums.mysite.com;
  location / {
    proxy_pass http://localhost:8080/; #your discourse port as seen by the host
  }
}

```

---

_[View the full topic](https://meta.discourse.org/t/discourse-docker-other-rails-app-on-the-same-droplet/23673)._
