在使用服务器时出现:目录列表被拒绝这个虚拟目录不允许内容被列出,这是什么原因

在使用服务器时出现:目录列表被拒绝这个虚拟目录不允许内容被列出,这是什么原因,第1张

出现这个提示是指没有在指定的目录找到默认首页,比如直接输入域名访问空间,但是出现以上提示,那么请检查在>


1 虚拟主机开通后默认自动生成下面几个默认首页,依次分别为indexasp,indexaspx,defaultasp,deaultaspx,indexhtm等等,首页必须是以上默认首页之一。这样才能自动找到该文件如果没有,可以自己添加:


1在iis中
默认网站右键选择属性再点文档,在上面添加就可以了


2在apache中
方法一在conf/>#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested
#
# The indexhtmlvar file (a type-map) is used to deliver content-
# negotiated documents  The MultiViews Option can be used for the
# same purpose, but it is much slower
#
DirectoryIndex fixhtml indexphp indexhtml indexhtm defaultphp defaulthtm defaulthtml indexhtmlvar

这是FTP服务器对来访 IP 反向解析的问题。为了防止欺骗,FTP 有一个对来访 IP 反查,但是大部份这种解析会直接被超时,因此列目录会被等待 15-30 秒。在服务器设置里面取消针对来访 IP DNS反向解析即可实现加速。


欢迎分享,转载请注明来源:内存溢出

原文地址: https://www.outofmemory.cn/zz/13187815.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-06-17
下一篇 2023-06-17

发表评论

登录后才能评论

评论列表(0条)

保存