在http:// localhost /创建虚拟目录

gul*_*aek 13 iis visual-studio-2010 visual-studio iis-7.5

嗨,我想在http:// localhost创建一个虚拟目录

它只是一个标准的IIS 7.5安装,意味着http:// localhost /只显示iis徽标.但是如何删除该页面并使其可以在虚拟目录中使用它.

现在我在Visual Studio中收到此消息,当我尝试创建虚拟目录时.

"无法创建虚拟目录.URL'http:// localhost /'已映射到不同的文件夹位置."

我可以在ex创建一个虚拟目录.http:// localhost/web但我需要它是一个http:// localhost /

Mar*_*erl 8

你想要的不是虚拟目录.只需将默认网站的物理路径更改为您想要的位置,或将其发布到该文件夹​​中.默认情况下,物理路径是c:\inetpub\wwwroot\.

Default Web Site -> Manage Web Sites -> Advanced Settings -> Physical Path
Run Code Online (Sandbox Code Playgroud)