Nginx server binds domain name

I would like to ask why the following configuration nginx.conf file is still not accessible through the domain name, but can only be accessed through IP. The domain name has been resolved and can be ping to

.
server {
        listen       80 default_server;
        listen       [::]:80 default_server;
        server_name  www.bitsu.club;
        root         /www/blog;
        index index.html;

        -sharp Load configuration files for the default server block.
        include /etc/nginx/default.d/*.conf;

        location / {
        }

        error_page 404 /404.html;
            location = /40x.html {
        }

        error_page 500 502 503 504 /50x.html;
            location = /50x.html {
        }
    }
Jan.08,2022

should be a problem with the deployed program.

see if your www/blog/index.html exists.

try:

    location / {
        index   index.html index.php;
    }

you can find a problem every time you ask. The parsing has been changed and forgotten. Sorry

Menu