Apache 不添加索引而不解决任何匹配的DirectoryIndex

Apache 不添加索引而不解决任何匹配的DirectoryIndex,apache,logging,server,Apache,Logging,Server,我要解决或禁用此错误: [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

我要解决或禁用此错误:

[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文件。 我需要这个没有索引文件的文件夹。

我有apache 2.4和以下配置:

<Directory "/home/user/public_html/kodi/">
        Require all granted
</Directory>

<Directory "/home/user/public_html/kodi/repository/">
        Require all granted
    </Directory>

要求所有授权
要求所有授权
如何解决此错误?

我解决了此错误。 我删除了上面的代码,并输入以下内容:

<Directory "/home/user/public_html/kodi">
  Options Indexes FollowSymLinks
  AllowOverride None
  Require all granted
</Directory>

选项索引跟随符号链接
不允许超限
要求所有授权
还删除了kodi文件夹中的.htaccess。 并使default.php文件为空,现在一切都很好