2012-08-07 69 views

回答

0

是否有可能您有DirectorySlash已关闭?它使得对缺少尾部斜线的目录的请求被重定向到与相同的目录尾部斜线。默认情况下,它是,但如果它关闭,它有一个strange side effect that allows listing of directories regardless of the Indexes options

关闭斜线重定向可能会导致信息泄露。考虑mod_autoindex处于活动状态(Options + Indexes)和DirectoryIndex设置为有效资源(比如index.html)并且没有为该URL定义其他特殊处理程序的情况。在这种情况下,带有斜线的请求会显示index.html文件。但是没有斜杠的请求会列出目录内容。

相关问题