我想解决或禁用此错误:
[Thu Jan 02 23:48:06.382888 2020] [autoindex:error] [pid 17460:tid 140351947863808] [client 92.36.xxx.xxx:49018] AH01276: Cannot serve directory /home/user/public_html/kodi/repository/: No matching DirectoryIndex (index.php,index.html.var,index.htm,index.html,index.shtml,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.phtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html) found, and server-generated directory index forbidden by Options directive文件夹存储库没有任何索引或.htacess文件。我需要这个没有索引文件的文件夹.
我有Apache2.4,这个配置:
<Directory "/home/user/public_html/kodi/">
Require all granted
</Directory>
<Directory "/home/user/public_html/kodi/repository/">
Require all granted
</Directory>如何解决这个错误?
发布于 2020-01-03 18:21:09
我解决了这个错误。我删除了上面的代码,并输入以下内容:
<Directory "/home/user/public_html/kodi">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>还删除了科迪文件夹中的.htaccess。并使default.php文件为空,现在所有的工作都很棒!
https://stackoverflow.com/questions/59571111
复制相似问题