I installed nginx on GCE, but I couldn't connect, so I investigated it.
I got the following error curl: (7) Failed connect to ***. ***. ***. ***: **;
・ Ping confirmation
PING ...:** (...:) 56(84) bytes of data. 64 bytes from ...:: icmp_seq=1 ttl=55 time=127 ms --- ...:** ping statistics --- 14 packets transmitted, 14 received, 0% packet loss, time 13017ms
https://eng-entrance.com/linux-command-ping As you can see on the above site, communication is normal.
When I re-installed apache and started apache, I was able to access it normally.
curl -I ... HTTP/1.1 403 Forbidden Date: Tue, 24 Mar 2020 22:39:08 GMT Server: Apache/2.4.6 (CentOS) Last-Modified: Thu, 16 Oct 2014 13:20:58 GMT ETag: "1321-5058a1e728280" Accept-Ranges: bytes Content-Length: 4897 Content-Type: text/html; charset=UTF-8
The display of Curl has also changed.
It was an embarrassing story that nginx could not be started.
[Thought] ・ Understanding GCP firewall settings is required https://dev.classmethod.jp/articles/gce-firewall/
[Reference site] http://yebisupress.dac.co.jp/2018/08/23/publish_website_with_google-cloud-platform/