請(qǐng)問如下配置nginx.conf文件為什么還是無法通過域名訪問,只能通過IP訪問,域名已經(jīng)解析,能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 {
}
}
1 回答

三國紛爭(zhēng)
TA貢獻(xiàn)1804條經(jīng)驗(yàn) 獲得超7個(gè)贊
應(yīng)該是部署的程序的問題。
看看你的www/blog/index.html存在不存在。
試試:
location / { index index.html index.php; }
- 1 回答
- 0 關(guān)注
- 517 瀏覽
添加回答
舉報(bào)
0/150
提交
取消