nginxのウェルカムページが全く表示されない( ;∀;)
なんでじゃ ログ出力してみるも特にエラー出力なし。
とりあえずcurl叩いてみる
[vagrant@localhost nginx]$ curl 192.168.33.10 curl: (7) Failed to connect to 192.168.33.10 port 80: ホストへの経路がありません
ポートがあいてないってこと?
????ファイアウォール確認
[vagrant@localhost nginx]$ sudo firewall-cmd --list-services --zone=public --permanent dhcpv6-client ssh
httpがない!
追加して確認
[vagrant@localhost nginx]$ sudo firewall-cmd --add-service=http --zone=public --permanent success [vagrant@localhost nginx]$ sudo firewall-cmd --list-services --zone=public --permanent dhcpv6-client ssh http
この状態でブラウザアクセスしたら無事表示された