# IP がドメインにリダイレクトせず、ドメインは白ページを表示します

**URL:** https://meta.discourse.org/t/ip-does-not-redirect-to-domain-domain-shows-white-page/140112
**Category:** Self-hosting
**Tags:** unsupported-install
**Created:** [2020 年 1 月 29 日午後 9:01 UTC](https://meta.discourse.org/t/ip-does-not-redirect-to-domain-domain-shows-white-page/140112 "2020-01-29T21:01:23Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Jacob\_Peebles](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jacob_peebles/32/168161_2.png) [@Jacob\_Peebles](https://meta.discourse.org/u/Jacob_Peebles)
#### Post date: [2020 年 1 月 29 日午後 9:01 UTC](https://meta.discourse.org/t/ip-does-not-redirect-to-domain-domain-shows-white-page/140112/1 "2020-01-29T21:01:23Z")

</div>

皆様、こんにちは。

Google Cloud Platform に Bitnami の Discourse マーケットプレイスアプリをインストールしました。

すべて予定通りに動作しているようですが、現在はドメインをサイトに割り当てる段階にあります。

これまでの手順をまとめますと、IP アドレスは取得済みで、以下の通り設定済みです：[http://35.231.40.89/](http://35.231.40.89/)

本来であれば、Google Cloud DNS サービスで設定したドメインに転送されるはずなのですが、それが起こりません。

さらに奇妙なことに、ドメインは Discourse サイトに解決されるものの、画面は白く、下部に Bitnami のタブが表示されるだけです。これは非常に奇妙です。

何か特別な手順が必要でしょうか？

ご支援をありがとうございます。もし見落としがあれば、お知らせください。

よろしくお願いいたします。

Jake

---

<div class="post-metadata">

### Author: ![Remah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/remah/32/70590_2.png) [@Remah](https://meta.discourse.org/u/Remah)
#### Post date: [2020 年 1 月 29 日午後 9:07 UTC](https://meta.discourse.org/t/ip-does-not-redirect-to-domain-domain-shows-white-page/140112/2 "2020-01-29T21:07:13Z")

</div>

こんにちは、Jake さん

公式なインストール方法は、[discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md) にある手順に従ってください。

Bitnami によるインストールは、それを作成した人がサポートするはずです。

---

<div class="post-metadata">

### Author: ![Remah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/remah/32/70590_2.png) [@Remah](https://meta.discourse.org/u/Remah)
#### Post date: [2020 年 1 月 30 日午後 6:36 UTC](https://meta.discourse.org/t/ip-does-not-redirect-to-domain-domain-shows-white-page/140112/3 "2020-01-30T18:36:22Z")

</div>

CSP を無効にすると解決する可能性があります:

> [@Port forwarding?](https://meta.discourse.org/t/port-forwarding/140193/2?u=remah):
>
> Do you see any errors in the browser console? It could be related to CSP.

---

<div class="post-metadata">

### Author: ![Jacob\_Peebles](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jacob_peebles/32/168161_2.png) [@Jacob\_Peebles](https://meta.discourse.org/u/Jacob_Peebles)
#### Post date: [2020 年 1 月 31 日午後 5:43 UTC](https://meta.discourse.org/t/ip-does-not-redirect-to-domain-domain-shows-white-page/140112/4 "2020-01-31T17:43:24Z")

</div>

こんにちは！

まず、ご返信いただきありがとうございます。返信が遅くなり申し訳ありません。Bitnami インストールと Discourse サイトに関するご指摘は理解しました。

しかし、この質問は実はその点とは直接関係ないと思いますので、少し言い換えて追加でいくつか伺いたいことがあります：

- Discourse をサブドメインではなくメインドメインとして設定することは可能でしょうか？つまり、[forum.mycommunity.com](http://forum.mycommunity.com) ではなく [mycommunity.com](http://mycommunity.com) で Discourse を動作させることはできますか？

私のサイトはこちらです。ドメインは thepros.community です。ご覧の通り、現在は白いページが表示されているだけです。

奇妙なことに、私の DNS 設定は非常に標準的です。以前同様の作業を行った際は、IP アドレスが問題なくドメインに転送されていたのですが…

よろしくお願いいたします！

Jake

---

<div class="post-metadata">

### Author: ![Jacob\_Peebles](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jacob_peebles/32/168161_2.png) [@Jacob\_Peebles](https://meta.discourse.org/u/Jacob_Peebles)
#### Post date: [2020 年 1 月 31 日午後 5:44 UTC](https://meta.discourse.org/t/ip-does-not-redirect-to-domain-domain-shows-white-page/140112/5 "2020-01-31T17:44:13Z")

</div>

CSP が何なのかはわかりませんが、ブラウザのエラーやそのようなものは見当たりません。

---

<div class="post-metadata">

### Author: ![Remah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/remah/32/70590_2.png) [@Remah](https://meta.discourse.org/u/Remah)
#### Post date: [2020 年 1 月 31 日午後 5:52 UTC](https://meta.discourse.org/t/ip-does-not-redirect-to-domain-domain-shows-white-page/140112/6 "2020-01-31T17:52:13Z")

</div>

はい、Discourse はドメイン上で動作可能です：

> [@Configure your hosted Discourse site to run at the root or apex domain (e.g. example.com)](https://meta.discourse.org/t/configure-your-hosted-domain-name-at-the-root-example-com/60951?u=remah):
>
> Most hosted discourse instances are on a subdomain: forum.example.com talk.example.com www.example.com This is our general recommendation in almost all cases, and it works great. However, if you wish to use a root domain or apex domain for your hosted discourse, like so example.com this turns out to be surprisingly difficult in a hosting scenario, due to the vagaries of how DNS works. thinking It is possible, however, you must use a DNS provider that specifically supports it! DNS pro…

CSP は以下で説明されています。これはあなたの問題に関連している可能性があります。もしそうであれば、このトピックで CSP を無効化し、ソースを追加する方法がわかります：

> [@Mitigate XSS Attacks with Content Security Policy](https://meta.discourse.org/t/mitigate-xss-attacks-with-content-security-policy/104243?u=remah):
>
> bookmark This guide explains how to use Content Security Policy (CSP) to mitigate Cross-Site Scripting (XSS) attacks in Discourse. It covers CSP basics, configuration, and best practices. person_raising_hand Required user level: Administrator Summary Content Security Policy (CSP) is a crucial security feature in Discourse that helps protect against Cross-Site Scripting (XSS) and other injection attacks. This guide covers the basics of CSP, how it’s implemented in Discourse, and how to c…

---

<div class="post-metadata">

### Author: ![Jacob\_Peebles](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jacob_peebles/32/168161_2.png) [@Jacob\_Peebles](https://meta.discourse.org/u/Jacob_Peebles)
#### Post date: [2020 年 1 月 31 日午後 5:58 UTC](https://meta.discourse.org/t/ip-does-not-redirect-to-domain-domain-shows-white-page/140112/7 "2020-01-31T17:58:29Z")

</div>

レイマさん、ありがとうございます。興味深い内容ですね。準備を進め、アップデートしてお知らせします！

- ジェイク

---

<div class="post-metadata">

### Author: ![Remah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/remah/32/70590_2.png) [@Remah](https://meta.discourse.org/u/Remah)
#### Post date: [2020 年 1 月 31 日午後 6:18 UTC](https://meta.discourse.org/t/ip-does-not-redirect-to-domain-domain-shows-white-page/140112/8 "2020-01-31T18:18:49Z")

</div>

申し訳ありません、説明不足でした。

あなたはセルフホストしているため、Discourse によるホスティングに関する手順は不要です。これを記載したのは、エイペックスドメインを使用する際に問題が発生する可能性があること、そしてこの重要な欠点について理解しておくべきであることを示すためです。

これは実際にはあなたの現在の問題と直接関係ありません。しかし、この問題について理解したい場合は、以下のブログ記事が参考になります。

> **[CNAME at the apex of a zone](https://www.isc.org/blogs/cname-at-the-apex-of-a-zone/)**
>
> It is often asked, “Why can’t I have a CNAME at the zone apex?
