1、打开C:\Users\<用户名>\Documents\IISExpress\config\applicationhost.config

2、编辑site节如下(行4)

[html] view plain copy

IIS Express 虚拟目录IIS Express 虚拟目录

  1. <site name="项目名称" >
  2. <application path="/" applicationPool="Clr4IntegratedAppPool">
  3. <virtualDirectory path="/" physicalPath="项目路径" />
  4. <virtualDirectory path="/虚拟目录名" physicalPath="本地路径"/>
  5. </application>
  6. <bindings>
  7. <binding protocol="http" bindingInformation="*:端口号:localhost" />
  8. </bindings>
  9. </site>

参考文章

http://forums.iis.net/t/1195314.aspx

http://josephwoodward.co.uk/2014/01/how-to-create-a-virtual-directory-in-iis-express/

0

相关文章:

  • 2022-02-07
  • 2022-01-06
  • 2021-09-04
  • 2022-02-05
  • 2021-10-07
  • 2022-02-16
  • 2022-01-11
猜你喜欢
  • 2022-12-23
  • 2021-07-30
  • 2021-07-22
  • 2022-01-23
  • 2021-11-24
  • 2022-12-23
  • 2022-01-30
相关资源
相似解决方案