【发布时间】:2021-03-24 18:03:32
【问题描述】:
我做了所有应该防止目录浏览的事情。
我的.htaccess 有这个代码:Options All –Indexes
当我浏览到存在子目录的目录时它工作正常,例如“example.net/system”“system”有“main”、“top”等子目录。但是当我进入“example.net/system/main”时",其中没有子目录,我可以看到所有的 php、html 等文件。
我的 .htaccess 文件位于 /var/www/html 文件夹中
【问题讨论】: