0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Apache設定したけど接続できないときに確認したこと

Posted at

こちらの記事を参考にラズパイにApacheを入れてLANから接続してみようとしたときにつまづいた点です。
先に上記の記事をお読みください。

Apacheのデフォルトページが表示されない

ラズパイのIPアドレスを別PCのブラウザに入力したところまでは良かったのですが、Apacheのindex.htmlが表示されません。
image.png

表示されてほしいページ↓
image.png

原因:ufwの設定

ポートを開いていませんでした。
ufwの80番ポートを解放する設定を行います。

pi@raspberrypi:~ $ sudo ufw allow 80
Rule added
Rule added (v6)
pi@raspberrypi:~ $ sudo ufw status
Status: active

To                         Action      From
--                         ------      ----
VNC                        ALLOW       Anywhere                  
25565                      ALLOW       Anywhere                  
80                         ALLOW       Anywhere                  
VNC (v6)                   ALLOW       Anywhere (v6)             
25565 (v6)                 ALLOW       Anywhere (v6)             
80 (v6)                    ALLOW       Anywhere (v6)

Apacheの設定してみたけど繋がらない…という場合はファイアウォールの設定も確認しましょう。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?