错误 - 目录指数期权指令禁止? [英] Error - Directory index forbidden by Options directive?
问题描述
我一直这个服务器为整个学期,没有更改任何配置选项 - 目录/我创建了几个星期前仍然可以访问,但是任何新的目录,甚至精确旧的工作目录重复穿上文件别让我访问它们 - 获取错误由Options指令禁止目录索引。是什么原因造成的?
I have been working on this server for the entire semester and have not changed any configuration options - the directories/files I created a couple weeks ago are still accessible, however any new directories, even exact duplicate of old working directories don't let me access them - get error "Directory index forbidden by Options directive". What is causing this?
推荐答案
看起来像Apache的人禁用目录列表。如果你被允许的.htaccess覆盖它只是放置一个.htaccess文件在你的根Web目录有这样的信息:
Looks like someone disabled directory listing in Apache. If you are allowed to override it with .htaccess just place an .htaccess file in your root web directory with this information:
Options +Indexes
这篇关于错误 - 目录指数期权指令禁止?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!