IIS Express 虚拟目录

1、打开C:\Users\<用户名>\Documents\IISExpress\config\applicationhost.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
posted @ 2016-08-01 07:28  shiningrise  阅读(390)  评论(0编辑  收藏  举报
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css