IIS Express 虚拟目录

1、打开C:Users<用户名>DocumentsIISExpressconfigapplicationhost.config

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

[html] view plain copy

在CODE上查看代码片派生到我的代码片

  1. <site name="项目名称" id="31">
  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
原文地址:https://www.cnblogs.com/shiningrise/p/5724509.html