# Multisite Config

**URL:** <https://meta.discourse.org/t/multisite-config/146420>\
**Category:** Self-hosting\
**Created:** [April 1, 2020, 12:28pm UTC](https://meta.discourse.org/t/multisite-config/146420 "2020-04-01T12:28:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [April 1, 2020, 4:45pm UTC](https://meta.discourse.org/t/multisite-config/146420/2 "2020-04-01T16:45:41Z")

</div>

> [@Rob\_Spencer](#):
>
> it just the second host name that goes in the `before_bundle_exec:` hook?

Yes.

> [@Rob\_Spencer](#):
>
> Does just the first host name go in the ` env: DISCOURSE_HOSTNAME:` variable?

Yes

> [@Rob\_Spencer](#):
>
> Do the smtp settings in the `env:` section apply to all sites?

Yes.

> [@Rob\_Spencer](#):
>
> Here’s what I currently have in `app.yml`.

That looks good to me. Did you do a rebuild and see if it works? You’ll need to make the external nginx proxy for the second site just as you have the first one, of course.

---

_[View the full topic](https://meta.discourse.org/t/multisite-config/146420)._
