Ip can be accessed after nginx installation, but domain name is not available.

refer to the tutorial: http://www.runoob.com/linux/n., such as the title.
locaohost cannot be accessed, but ping can be reached

searched, it is useless to open port 80

After

, modify the domain name and modify the / etc/host etc/hosts file. The domain name can be accessed by ping but still cannot access
. The result is the same for many times, and there is nothing you can do about it.
there is a solution willing to try, thank you.

Mar.13,2021

server_name localhost;

change the localhost here to your domain name


has the domain name been specified for DNS resolution

Menu