[Web server] A story when I investigated because I could not access nginx

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/

Recommended Posts

[Web server] A story when I investigated because I could not access nginx
A story that stumbled when I made a chatbot with Transformer
How to check when python-memcached server could not be connected
When you access the web server, L Chika with Arduino
I got a TypeError:'int' object is not iterable when using keras
A story that I fixed when I got Lambda logs from Cloudwatch Logs
I made a web server with Raspberry Pi to watch anime
The story that Pathlib could not access the folder containing the half-width space
What I stumbled upon when using CodeIgniter on a Linux server