# 始终在 multisite 中使用主站的主机名

**URL:** <https://meta.discourse.org/t/always-uses-the-hostname-of-the-master-site-on-multisite/90598>\
**Category:** Support\
**Tags:** patreon\
**Created:** [2018年五月7日 21:22 UTC](https://meta.discourse.org/t/always-uses-the-hostname-of-the-master-site-on-multisite/90598 "2018-05-07T21:22:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [2018年五月7日 21:22 UTC](https://meta.discourse.org/t/always-uses-the-hostname-of-the-master-site-on-multisite/90598/1 "2018-05-07T21:22:31Z")

</div>

There is a multisite bug here, it always uses the hostname of the master site.

> <https://github.com/discourse/discourse-patreon/blob/a37ce147f5fed5dc7ba19786004410d187c5a4ae/plugin.rb#L22>

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2018年五月7日 21:49 UTC](https://meta.discourse.org/t/always-uses-the-hostname-of-the-master-site-on-multisite/90598/2 "2018-05-07T21:49:53Z")

</div>

Hmm, can you confirm @vinothkannans? Seems like we would have seen this on our hosting.

---

<div class="post-metadata">

**Author:** ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)\
**Post date:** [2018年五月8日 02:55 UTC](https://meta.discourse.org/t/always-uses-the-hostname-of-the-master-site-on-multisite/90598/3 "2018-05-08T02:55:11Z")

</div>

I am able to see the problem. Let me check. We not yet seen this in our hosting. But it’s similar to the issue we faced earlier.

---

<div class="post-metadata">

**Author:** ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)\
**Post date:** [2018年五月8日 15:11 UTC](https://meta.discourse.org/t/always-uses-the-hostname-of-the-master-site-on-multisite/90598/4 "2018-05-08T15:11:42Z")

</div>

It is fixed now. @RGJ can you please confirm it?

---

<div class="post-metadata">

**Author:** ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)\
**Post date:** [2018年六月24日 13:00 UTC](https://meta.discourse.org/t/always-uses-the-hostname-of-the-master-site-on-multisite/90598/5 "2018-06-24T13:00:06Z")

</div>


