如何禁用网站和iis中的目录列表 [英] how to disable directory listing in website and in iis

查看:111
本文介绍了如何禁用网站和iis中的目录列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序在Framework 2.0中.当我运行项目时以及在iis上托管项目时,目录列表都会显示出来,它会引发HTTP error403异常.现在,我想在网站和iis服务器上都禁用目录列表.告诉我如何实现此

my application is in framework 2.0. the directory list is showing when i run the project and when i host it on iis it is throwing HTTP error403 exception .now i want to disable the directory listing in both website and iis server.Tell me how to achieve this

推荐答案

http://forums.asp.net/t/1338177. aspx/1 [ ^ ]

http://stackoverflow.com/questions/5549374/how-to- disable-directory-browse-in-web-config [ ^ ]
http://forums.asp.net/t/1338177.aspx/1[^]

http://stackoverflow.com/questions/5549374/how-to-disable-directory-browse-in-web-config[^]


这篇关于如何禁用网站和iis中的目录列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆