要求:

配置 域名和IP的映射关系到hosts文件。

IP:     110.123.11.0

地址:  https://lucky.com:16015/app/html/index1.htm


步骤:

1、win10 x64系统,hosts文件位置:

C:\Windows\System32\drivers\etc

2、我的错误:

想当然地,在末尾添加如下一行(注意:回车在第24行):

hosts文件配置

然后,访问该地址 https://lucky.com:16015/app/html/index1.htm,报400错误,怎么回事呢?

3、解决:

注意,配的是域名,域名,域名

把端口连同其它多余的都删除!改为:

hosts文件配置

再访问该地址,ok


相关文章:

  • 2021-11-19
  • 2022-12-23
  • 2021-06-20
  • 2021-08-06
  • 2021-08-20
  • 2022-12-23
  • 2021-12-27
  • 2021-08-06
猜你喜欢
  • 2021-11-19
  • 2022-01-01
  • 2021-12-16
  • 2021-08-08
  • 2021-04-19
  • 2021-11-19
  • 2021-11-19
相关资源
相似解决方案