# \[DigitalOcean\] A レコードに「www」を含むホスト名が空白ページを表示

**URL:** <https://meta.discourse.org/t/digitalocean-hostname-having-www-in-a-records-showing-blank-page/128227>\
**Category:** Self-hosting\
**Tags:** hosting\
**Created:** [2019 年 9 月 11 日午前 3:45 UTC](https://meta.discourse.org/t/digitalocean-hostname-having-www-in-a-records-showing-blank-page/128227 "2019-09-11T03:45:59Z")\
**Posts on this page:** 1\
**Showing post:** 22

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [2019 年 9 月 18 日午後 1:15 UTC](https://meta.discourse.org/t/digitalocean-hostname-having-www-in-a-records-showing-blank-page/128227/22 "2019-09-18T13:15:40Z")

</div>

> [@\[DigitalOcean\] hostname having "www" in A records showing blank page](https://meta.discourse.org/t/digitalocean-hostname-having-www-in-a-records-showing-blank-page/128227/14):
>
> You can’t publish under two URLs. Pick one, redirect the other.

DNS エントリを IP アドレスに指し示すことは、リダイレクトではありません。Nginx には 2 つ目のホスト名のエントリがないため、自動的に解決されることはありません。

設定に手動でリダイレクトを追加する方法か、外部サービスを使用するかのどちらかを選択できます。

---

_[View the full topic](https://meta.discourse.org/t/digitalocean-hostname-having-www-in-a-records-showing-blank-page/128227)._
