在配置localhost和IP都可以访问:

 

方法1:

applicationhost.config文件配置:

<bindings>

  <binding protocol="http" bindingInformation=":1904:" />

</bindings>

 

 

 

方法2:

applicationhost.config文件配置:

<bindings> 
     <binding protocol="http" bindingInformation=":1904:locahost" />
     <binding protocol="http" bindingInformation=":1904:192.168.1.22" />
</bindings>

 

这样配置的话

IIS Express 一个网站配置多个 域名这个服务中会对应的网站会显示两个地址

相关文章:

  • 2022-12-23
  • 2021-04-06
  • 2022-12-23
  • 2021-10-16
  • 2021-12-23
  • 2021-11-17
  • 2021-07-08
  • 2021-08-07
猜你喜欢
  • 2022-12-23
  • 2021-10-29
  • 2021-11-08
  • 2021-04-01
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案