visual-studio - 在 http ://localhost/创建虚拟目录

标签 visual-studio visual-studio-2010 iis iis-7.5

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

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

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

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

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

最佳答案

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

Default Web Site -> Manage Web Sites -> Advanced Settings -> Physical Path

关于visual-studio - 在 http ://localhost/创建虚拟目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4920576/

相关文章:

c++ - 没有自动完成 Visual Studio 2010

c++ - 将文件作为参数传递给 Visual Studio

iis - IIS 上的 ASP.NET Core 2.0 错误 502.5

c# - 关键终结器中的线程亲和性

vis studio 2008 中的 c++ 调试,如何在变量变为零时中断

c++ - C/C++ Visual Studio 社区匿名结构

C# 通过Url计算HTML文档大小

visual-studio - TF30063 :You are not authorized to access dev. azure.com 但我可以连接

visual-studio-2010 - node-gyp:无法打开输入文件 'kernel32.lib'

IIS 6 到 IIS 7.5 导出 SSL 证书