使用IIS关闭文件夹浏览

时间:2015-02-13 16:12:46

标签: asp.net visual-studio-2010 iis

我有一个使用ASP.Net构建的托管网站。我正在进行更新,并希望将其安装在域的子文件夹中进行测试。我使用VS 2010发布了它,但该网站无法运行。我联系了供应商,他们做了一些改变。虽然站点运行,但您必须键入default.aspx的完整路径才能查看主页面。如果我只是在浏览器中键入路径,期望它会找到并加载default.aspx,它不会。而是在浏览器窗口中显示文件夹内容。

我再次与供应商联系,他们说我必须使用IIS 7或更高版本关闭浏览器浏览器,否则他们可以为我支付95美元的一次性费用。我下载了IIS并登录到我的域,但是我没有看到新站点所在的文件夹。事实上,我没有看到任何文件夹或文件。我没有看到WWWRoot。我不太确定我在看什么。

如何在IIS中找到该文件夹​​?如果我能找到它,我会看到关闭文件夹浏览的选项。

格雷格

2 个答案:

答案 0 :(得分:1)

答案 1 :(得分:0)

https://technet.microsoft.com/en-us/library/cc731109%28v=ws.10%29.aspx

Open IIS Manager and navigate to the level you want to manage. For information about opening IIS Manager, see Open IIS Manager (IIS 7). For information about navigating to locations in the UI, see Navigation in IIS Manager (IIS 7).

In Features View, double-click Directory Browsing.

In the Actions pane, click Enable if the Directory Browsing feature is disabled and you want to enable it. Or, click Disable if the Directory Browsing feature is enabled and you want to disable it.