自己的網站網域無法解析
chrome報錯:Get net::ERR_NAME_NOT_RESOLVED
nginx配置
server {
listen 80;
server_name www.xxx.cn;
rewrite ^(.*)$ https://$host permanent;
}
server {
listen 443;
server_name www.xxx.cn;
ssl on;
ssl_certificate /data/www/blog/ssl/1_www.xxx.cn_bundle.crt;
ssl_certificate_key /data/www/blog/ssl/2_www.xxx.cn.key;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;
ssl_prefer_server_ciphers on;
location / {
root /data/www/blog/;
try_files $uri $uri/ /index.html;
}
}
網域無法解析要找網域解析服務啊…
ping www.xxx.cn
或nslookup www.xxx.cn
(windows) 查下網域解析得到不同樓上,網域無法解析和nginx配置沒關係