Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/34.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 阻止显示站点目录_Asp.net_Iis - Fatal编程技术网

Asp.net 阻止显示站点目录

Asp.net 阻止显示站点目录,asp.net,iis,Asp.net,Iis,我有一个子域,在这个子域上,我为我的webiste提供了与另一个应用程序交互的所有js代码。例如:在code.example.com 每当用户键入此地址code.example.com时,目录的所有内容都会列出。我该如何防止这件事?我这里没有nay index.html或index.aspx。在IIS配置中,关闭目录浏览 如果您说您使用的是哪个版本的IIS,那么我们可以给出如何关闭目录浏览的具体步骤

我有一个子域,在这个子域上,我为我的webiste提供了与另一个应用程序交互的所有js代码。例如:在code.example.com


每当用户键入此地址code.example.com时,目录的所有内容都会列出。我该如何防止这件事?我这里没有nay index.html或index.aspx。

在IIS配置中,关闭目录浏览

如果您说您使用的是哪个版本的IIS,那么我们可以给出如何关闭目录浏览的具体步骤