目录列表被拒绝 [英] Directory Listing Denied

查看:101
本文介绍了目录列表被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我是网络开发人员
告诉我这个错误是什么意思?
请帮助我!

Hi,

I am web developer
Tell me what does this Error Mean?
Please Help me!

推荐答案

该错误表明没有默认页面,并且Web服务器配置为拒绝目录列表.当您导航到文件夹而不在URL中指定文档名称时,它会出现.

正确的做法是将其放在默认页面中.如果您使用的是IIS 6,则可以通过选择您的网站,然后打开默认文档"小程序来完成.在IIS 5中,打开网站的属性"表单,然后转到文档"选项卡.从这里,您可以创建文档的有序列表,当没有给出任何文档时,IIS将尝试提供这些文档.对于使用.NET的网站,标准为Default.aspx.较旧的Web服务器可能使用default.aspindex.htmlindex.htm.这是一个有序列表,因此,如果找不到第一个文档名称,服务器将尝试传递第二个文档名称,然后是第三个文档,依此类推.如果在文件夹中找不到列表中的所有文档,则服务器将查看是否可以发送目录列表.如果不是这样,它只会使人感到沮丧,并发出错误消息.

您也可以允许目录浏览,尽管通常认为这是个坏主意,尤其是对于公共站点.
The error says that there is no default page, and the web server is configured to deny a directory listing. It comes up when you navigate to a folder without specifying a document name in the URL.

The proper thing to do is put in a default page. If you are using IIS 6, you can do this by selecting your website, then opening the Default Document applet; in IIS 5, open your site''s Properties form and go to the Documents tab. From here, you can create an ordered list of documents that IIS will try to serve up when no document is given. For websites using .NET, the standard is Default.aspx. Older web servers might use default.asp, index.html or index.htm. It is an ordered list, so if the first document name is not found, the server will try to deliver the second one, then the third, and so on. If none of the documents on the list are found in the folder, the server will see if it can send a directory listing. If not, it just throws up it''s hands in frustration and delivers the error message.

You can also permit directory browsing, although this is universally considered a Bad Idea, especially for public sites.


当请求的目录中没有索引文件时,将显示DLD错误. />
索引文件是当浏览器请求URL时显示的HTML文件.

没有索引,没有运气!
A DLD error is shown when there is no Index file in the requested directory.

The Index file is the HTML file that displays when a browser requests the URL.

No index, no luck!


这篇关于目录列表被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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