# ホスト名でポート443にアクセスできず、ポート80も失敗する

**URL:** https://meta.discourse.org/t/port-443-not-accessible-using-hostname-and-port-80-also-fails/395326
**Category:** Self-hosting
**Created:** [2026 年 2 月 5 日午後 9:36 UTC](https://meta.discourse.org/t/port-443-not-accessible-using-hostname-and-port-80-also-fails/395326 "2026-02-05T21:36:57Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![iam\_best](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iam_best/32/542180_2.png) [@iam\_best](https://meta.discourse.org/u/iam_best)
#### Post date: [2026 年 2 月 5 日午後 9:36 UTC](https://meta.discourse.org/t/port-443-not-accessible-using-hostname-and-port-80-also-fails/395326/1 "2026-02-05T21:36:57Z")

</div>

こんにちは、Discourseをセルフホストするのは初めてです。`wget -qO- https://raw.githubusercontent.com/discourse/discourse_docker/main/install-discourse | sudo bash` を実行して、公式のGitHubインストールガイドに従いました。サブドメインへの接続まで全て順調に進みましたが、検証を完了した後も、「このコンピューターのポート443はホスト名: \[Discourseサブドメイン\] からアクセスできないようです」および「\[Discourseサブドメイン\] ポート80への接続」も失敗するという同じエラーが繰り返し表示されます。

まず、`app.yml` が存在しなかったので、オンラインで確認して修正しました。ポートを81に変更し、443も変更して再度試しましたが、ポートを変更していないかのように同じエラーが発生しました。

また、raspapが問題を引き起こしているかどうかを確認したところ、ポート80を使用していることがわかりました。これを81に変更しましたが、まだ同じエラーです。

何が間違っているのでしょうか？これはRaspberry Pi 5を使用しているからでしょうか？ルーター設定でポートを開ける必要がありますか？途方に暮れており、これが初心者向けの質問であれば申し訳ありません。おそらく初心者だからでしょう。

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [2026 年 2 月 5 日午後 10:54 UTC](https://meta.discourse.org/t/port-443-not-accessible-using-hostname-and-port-80-also-fails/395326/2 "2026-02-05T22:54:56Z")

</div>

うーん…これを読んでいますか？

> [@Install Discourse on a residential internet with Cloudflare Tunnel](https://meta.discourse.org/t/install-discourse-on-a-residential-internet-with-cloudflare-tunnel/211297):
>
> Since [Discourse now has support for running on a Raspberry Pi](https://blog.discourse.org/2021/12/2021-12-07-discourse-on-a-raspberry-pi/), running a small instance in your home lab will become a common use case. However, many residential ISPs block incoming traffic to the ports 80/443 that Discourse need. For our demo site at [https://discourse-on-a-pi.falco.dev/](https://discourse-on-a-pi.falco.dev/) we used [Cloudflare Tunnel](https://blog.cloudflare.com/tunnel-for-everyone/) to work around this, and you can do it too! Setup your tunnel First, follow the following guide: The only change you need is changing the URL from url: http://localhost:8000 to url…

---

<div class="post-metadata">

### Author: ![iam\_best](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iam_best/32/542180_2.png) [@iam\_best](https://meta.discourse.org/u/iam_best)
#### Post date: [2026 年 2 月 5 日午後 11:10 UTC](https://meta.discourse.org/t/port-443-not-accessible-using-hostname-and-port-80-also-fails/395326/3 "2026-02-05T23:10:15Z")

</div>

いいえ、でも現在抱えている問題を解決してくれると確信しているので、ぜひ試してみます。ありがとうございます 🙂

---

<div class="post-metadata">

### Author: ![iam\_best](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iam_best/32/542180_2.png) [@iam\_best](https://meta.discourse.org/u/iam_best)
#### Post date: [2026 年 2 月 6 日午後 1:39 UTC](https://meta.discourse.org/t/port-443-not-accessible-using-hostname-and-port-80-also-fails/395326/4 "2026-02-06T13:39:19Z")

</div>

ポート80のエラーは修正できましたが、なぜ443がまだ動作しないのか分かりません。raspapがまだそれを使用している可能性があるかどうかわかりませんが、変更できないと思います。

---

<div class="post-metadata">

### Author: ![iam\_best](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iam_best/32/542180_2.png) [@iam\_best](https://meta.discourse.org/u/iam_best)
#### Post date: [2026 年 2 月 6 日午後 5:15 UTC](https://meta.discourse.org/t/port-443-not-accessible-using-hostname-and-port-80-also-fails/395326/5 "2026-02-06T17:15:21Z")

</div>

Cloudflareトンネルの件を理解するのに永遠とも思える時間がかかりましたが、このガイドに従ってポート80と433のエラーなしで接続できるようになりました: [Install Discourse on a residential internet with Cloudflare Tunnel](https://meta.discourse.org/t/install-discourse-on-a-residential-internet-with-cloudflare-tunnel/211297?tl=en)

その後、5秒のカウントダウンがあり、動作を開始したかと思ったら停止しました。これで完了だと思いドメインにアクセスしましたが、応答がないと表示されます。ローカルホストでも何も表示されません。起動方法が間違っているのでしょうか？設定は何も変更しておらず、すべてアンインストールして再インストールしても解決しませんでした。再構築も停止するだけで、`doctor discourse`はDiscourseコンテナアプリが実行中であると表示します。では、ローカルネットワークでアクセスして、そもそも他のデバイスで起動しているか確認するにはどうすればよいですか？

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2026 年 2 月 6 日午後 5:21 UTC](https://meta.discourse.org/t/port-443-not-accessible-using-hostname-and-port-80-also-fails/395326/6 "2026-02-06T17:21:44Z")

</div>

> [@iam\_best](#):
>
> それで、他のデバイスでも起動しているかどうかを確認するために、ローカルネットワークでどのようにアクセスすればよいですか？

RaspberryのIPアドレスを`cURL`して応答があるか試すことができます。

また、Cloudflareダッシュボードでトンネルの健全性を確認することもできます。

---

<div class="post-metadata">

### Author: ![iam\_best](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iam_best/32/542180_2.png) [@iam\_best](https://meta.discourse.org/u/iam_best)
#### Post date: [2026 年 2 月 6 日午後 7:28 UTC](https://meta.discourse.org/t/port-443-not-accessible-using-hostname-and-port-80-also-fails/395326/7 "2026-02-06T19:28:34Z")

</div>

`curl: (7) 0 ミリ秒後に (ここにIP) ポート 80 への接続に失敗しました: サーバーに接続できませんでした`

Cloudflareのダッシュボードでは正常と表示されています。

言い忘れていましたが、Raspberry Piのホットスポットであるraspapもホストしており、ウェブダッシュボードもホストしていますが、そのポートを81に変更しました。

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2026 年 2 月 6 日午後 8:10 UTC](https://meta.discourse.org/t/port-443-not-accessible-using-hostname-and-port-80-also-fails/395326/8 "2026-02-06T20:10:38Z")

</div>

Discourse は PI のポート 80 からアクセスできるはずなのに、cURL は別のマシンから到達できないということですか？

app.yml ファイルを共有していただけますか？

---

<div class="post-metadata">

### Author: ![iam\_best](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iam_best/32/542180_2.png) [@iam\_best](https://meta.discourse.org/u/iam_best)
#### Post date: [2026 年 2 月 6 日午後 8:27 UTC](https://meta.discourse.org/t/port-443-not-accessible-using-hostname-and-port-80-also-fails/395326/9 "2026-02-06T20:27:38Z")

</div>

pi自体でcurlを試しました。また、携帯電話からもそのウェブサイトにアクセスできませんが、PiのIPアドレスとポート81からホストしている別のサイトにはアクセスできます。

以下はapp.ymlファイルです。

```yaml
templates:

  - templates/postgres.template.yml

  - templates/redis.template.yml

  - templates/web.template.yml

  - templates/web.ratelimited.template.yml

  - templates/web.ssl.template.yml

  - templates/web.letsencrypt.ssl.template.yml

expose:

  - 80:80

  - 443:443

params:

  db_default_text_search_config: pg_catalog.english

  db_shared_buffers: 4096MB

env:

  LC_ALL: en_US.UTF-8

  LANG: en_US.UTF-8

  LANGUAGE: en_US.UTF-8

  DISCOURSE_HOSTNAME: forum.iambest.net

  DISCOURSE_DEVELOPER_EMAILS: (private email)

  DISCOURSE_SKIP_EMAIL_SETUP: '1'

  UNICORN_WORKERS: 8

volumes:

  - volume:

      host: "/var/discourse/shared/standalone"

      guest: "/shared"

  - volume:

      host: "/var/discourse/shared/standalone/log/var-log"

      guest: "/var/log"

hooks:

  after_code:

    - exec:

        cd: "$home/plugins"

        cmd:

          - git clone https://github.com/discourse/docker_manager.git

run:

  - exec: echo "Beginning of custom commands"

  - exec: echo "End of custom commands"

```

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2026 年 2 月 6 日午後 10:45 UTC](https://meta.discourse.org/t/port-443-not-accessible-using-hostname-and-port-80-also-fails/395326/10 "2026-02-06T22:45:19Z")

</div>

[Install Discourse on a residential internet with Cloudflare Tunnel](https://meta.discourse.org/t/install-discourse-on-a-residential-internet-with-cloudflare-tunnel/211297) のガイドに全く従っていませんか？

ポートやテンプレートのコメントアウトをしていなかった、など。

---

<div class="post-metadata">

### Author: ![iam\_best](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iam_best/32/542180_2.png) [@iam\_best](https://meta.discourse.org/u/iam_best)
#### Post date: [2026 年 2 月 7 日午前 1:43 UTC](https://meta.discourse.org/t/port-443-not-accessible-using-hostname-and-port-80-also-fails/395326/11 "2026-02-07T01:43:16Z")

</div>

> [@Falco](#):
>
> ポートとテンプレートをコメントアウトしなかったようですね。

ああ、その通りです。それは、トラブルシューティング中に、以前機能しなかった理由がそれかもしれないと確信が持てなかったため、削除したからです。

ポートをコメントアウトすべきかどうかも確信が持てなかったので、コメントアウトせずに再度試したところ、動作するようになりました…少しだけ、これが正しく見えないためです。

 ![Screenshot_20260207-023626](https://global.discourse-cdn.com/meta/original/4X/b/f/0/bf024e90d447f11692806e99e159e24ad662181d.png)

ガイドに書かれていたように、ロケット（Rocket）の機能も無効にしました。問題はドメインでもローカルホストでも発生します。

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [2026 年 2 月 7 日午前 2:11 UTC](https://meta.discourse.org/t/port-443-not-accessible-using-hostname-and-port-80-also-fails/395326/12 "2026-02-07T02:11:17Z")

</div>

CSSの問題のようですが、ファイアウォールが原因の可能性もありますか？お使いのインターネットサービスプロバイダ（ISP）でファイアウォールによる制限はありますか？

---

<div class="post-metadata">

### Author: ![iam\_best](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iam_best/32/542180_2.png) [@iam\_best](https://meta.discourse.org/u/iam_best)
#### Post date: [2026 年 2 月 7 日午前 2:24 UTC](https://meta.discourse.org/t/port-443-not-accessible-using-hostname-and-port-80-also-fails/395326/13 "2026-02-07T02:24:00Z")

</div>

ファイアウォールの制限は設定しておらず、CSSも一切触っていません。使用しているルーターも非常に制限が厳しいため、残念ながらファイアウォールの設定を変更することができません。

また、ポート25と455以外に制限されているポートはないようです。

---

<div class="post-metadata">

### Author: ![iam\_best](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iam_best/32/542180_2.png) [@iam\_best](https://meta.discourse.org/u/iam_best)
#### Post date: [2026 年 2 月 7 日午前 2:52 UTC](https://meta.discourse.org/t/port-443-not-accessible-using-hostname-and-port-80-also-fails/395326/14 "2026-02-07T02:52:42Z")

</div>

また、何らかの理由でHTTPSではなくHTTPを使用しているようです。ガイドに記載されていたように、`app.yml`でHTTPSを強制したのですが、それでもHTTPSを使用してサイトにアクセスできない理由がわかりません。

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [2026 年 2 月 7 日午前 3:05 UTC](https://meta.discourse.org/t/port-443-not-accessible-using-hostname-and-port-80-also-fails/395326/15 "2026-02-07T03:05:31Z")

</div>

@Falco Cloudflare Tunnelを使用する場合、LetsEncrypt証明書は必要ですか？それともCloudflare経由で自動的に処理されますか？
