IIS Express 虚拟目录
1、打开C:\Users\<用户名>\Documents\IISExpress\config\applicationhost.config
2、编辑site节如下(行4)
[html] view plain copy
- <site name="项目名称" id="31">
- <application path="/" applicationPool="Clr4IntegratedAppPool">
- <virtualDirectory path="/" physicalPath="项目路径" />
- <virtualDirectory path="/虚拟目录名" physicalPath="本地路径"/>
- </application>
- <bindings>
- <binding protocol="http" bindingInformation="*:端口号:localhost" />
- </bindings>
- </site>
参考文章
http://forums.iis.net/t/1195314.aspx
http://josephwoodward.co.uk/2014/01/how-to-create-a-virtual-directory-in-iis-express/
- 顶
- 0
- 踩