Apache 2.4:VirtualHost中的选项+索引
我无法让Apache在VirtualHost块内重新调整一个Options指令。 下面的代码片段非常简单,我可以重现错误 – 其余configuration是一个股票Deiban Apache 2.4。 <VirtualHost *:80> ServerName example DocumentRoot /home/test/ #owner www-data:www-data Options +Indexes <Location /> Require all granted </Location> </VirtualHost> 这将会失败,403 Forbidden和相应的日志中的以下行: [Sun Jun 26 15:06:30.378689 2016] [autoindex:error] [pid 15899:tid 140693629712128] [client 192.168.0.155:52850] AH01276: Cannot serve directory /home/test/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) found, and server-generated directory index forbidden by Options directive 但是,将Options […]