请问如下配置nginx.conf文件为什么还是无法通过域名访问,只能通过IP访问,域名已经解析,能ping到
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name www.bitsu.club;
root /www/blog;
index index.html;
# 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 {
}
}
应该是部署的程序的问题。
看看你的www/blog/index.html存在不存在。
试试: