作者:因情语写
链接:https://www.proprogrammar.com/article/710
声明:请尊重原作者的劳动,如需转载请注明出处
这是今天设置腾讯云cdn时遇到的问题,具体问题是这样的:
设置网站www.proprogrammar.com的cdn后,在域名解析中添加了两条记录
其中主机记录为@的记录值不加www,主机记录为www的记录值加www,在cdn中是这样的
然后发现只能通过www.proprogrammar.com访问,而无法通过proprogrammar.com访问,访问会报错:requested URL '/' was not found on this server
最后在知乎上找到了问题的答案
即如果在cdn中添加网址是www.proprogrammar.com,那就只能通过www.proprogrammar.com访问,如果想要通过proprogrammar.com访问,那么还要在cdn中添加proprogrammar.com
然后像上面在域名解析中添加两条记录,最后通过www.proprogrammar.com,proprogrammar.com访问均成功,问题解决
所以如果加www无法访问,或者不加www无法访问,那么原因可能是在cdn中没有设置带www的网址,或者没有设置不带www的网址
亲爱的读者:有时间可以点赞评论一下
月份 | 原创文章数 |
---|---|
202206 | 4 |
202205 | 2 |
202204 | 1 |
202203 | 11 |
202201 | 2 |
202108 | 7 |
202107 | 3 |
202106 | 16 |
202105 | 10 |
202104 | 16 |
202103 | 56 |
202102 | 14 |
202010 | 3 |
202009 | 3 |
202008 | 7 |
202007 | 7 |
202006 | 10 |
202005 | 11 |
202004 | 22 |
202003 | 52 |
202002 | 44 |
202001 | 83 |
201912 | 52 |
201911 | 29 |
201910 | 41 |
201909 | 99 |
201908 | 35 |
201907 | 73 |
201906 | 121 |
201811 | 1 |
201810 | 2 |
201804 | 1 |
201803 | 1 |
201802 | 1 |
201707 | 1 |
全部评论