(已解决,谢谢)求教为什么,修hosts文件能ping通,但浏...
Tofloor
poster avatar
zhaozhendong
deepin
2017-03-29 18:41
Author
本帖最后由 zhaozhendong 于 2017-3-29 14:07 编辑

求教为什么,修hosts文件能ping通,但浏览器打不开网站??
HOSTS是用这个命令改的
sudo wget https://github.com/racaljk/hosts/raw/master/hosts -P /etc/ -N




Reply Favorite View the author
All Replies
avatar
fenglewill
deepin
2017-03-29 19:19
#1
这个hosts 不行的
Reply View the author
avatar
a946488029
deepin
2017-03-29 19:48
#2
https               
Reply View the author
avatar
firedrake
deepin
2017-03-29 20:05
#3
www.google.com.hk != www.google.com
访问https://www.google.com/ncr,别让他跳到.hk去。
Reply View the author
avatar
markson
deepin
2017-03-29 20:19
#4
一律HTTPS开头才能访问
Reply View the author
avatar
Guumi
deepin
2017-03-29 20:29
#5
www 前面手工加个 https:// 就了
Reply View the author
avatar
zhaozhendong
deepin
2017-03-29 21:55
#6
https://bbs.deepin.org/post/136800
www.google.com.hk != www.google.com
访问https://www.google.com/ncr,别让他跳到.hk去。

谢谢,用你这个方法可以了,只用吧一次https://www.google.com/ncr,
后面在直接输入https://bbs.deepin.org/module就可以自动打开了,重启后也会自动打开,google可以默认搜索了,
写写
Reply View the author
avatar
zhaozhendong
deepin
2017-03-29 21:55
#7

用4楼 firedrake 方法可以
Reply View the author
avatar
zhaozhendong
deepin
2017-03-29 21:57
#8

用的是HTTPS,不行,用4楼 firedrake 方法可以
Reply View the author
avatar
chotow
deepin
2017-03-29 22:42
#9
虽然你的问题解决了,但我还是想说一下。
确实是因为 HTTPS 的问题,跟 ncr 没有关系。

如下图设置,可以强制 HTTP 跳转到 HTTPS。


Reply View the author
avatar
zhaozhendong
deepin
2017-03-30 17:44
#10
https://bbs.deepin.org/post/136800
虽然你的问题解决了,但我还是想说一下。
确实是因为 HTTPS 的问题,跟 ncr 没有关系。

谢谢,又学习了
Reply View the author