要求:
配置 域名和IP的映射关系到hosts文件。
IP: 110.123.11.0
地址: https://lucky.com:16015/app/html/index1.htm
步骤:
1、win10 x64系统,hosts文件位置:
C:WindowsSystem32driversetc
2、我的错误:
想当然地,在末尾添加如下一行(注意:回车在第24行):
然后,访问该地址 https://lucky.com:16015/app/html/index1.htm,报400错误,怎么回事呢?
3、解决:
注意,配的是域名,域名,域名
把端口连同其它多余的都删除!改为:
再访问该地址,ok
原文链接:https://blog.csdn.net/zhouxinxin0202/article/details/80315101