大网数据广告活动
服务器运维问答

http working, but www. does not

· 52CE 我爱测

I have been hunting for an answer but I really cannot find anything on the subject most likely down to me searching the wrong things. I am fairly certain its something to do with the way I have setup the DNS records but I may be …

问题原文

原帖链接 · Jake · CC BY-SA 3.0

I have been hunting for an answer but I really cannot find anything on the subject most likely down to me searching the wrong things. I am fairly certain its something to do with the way I have setup the DNS records but I may be wrong.

As you can see below;

bitcoinfaucet.pw resolves and loads perfectly fine.

www.bitcoinfaucet.pw does not resolve or load at all.

I have managed to install my SSL certification, directing any traffic from port 80 (http) to port 443 (https), I dont think this was the issue because the issue was present prior to making these changes. I have provided my DNS settings in the screenshot below.

This issue has really been frustrating me, and I really do hope one of you wizards can help me resolve it. I would be very, very appreciative.

已采纳解答

原帖链接 · Oxymoron · CC BY-SA 3.0

change www to be a CNAME targeted to @ instead of an A record. Leave the @ as an A record.

An exception to this would be when you want example.com to point to some different IP address than www.example.com. But if you setup www.example.com as a CNAME that points to example.com. then whatever you point example.com to then www.example.com will follow.

example:

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-05-06)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。