У меня проблема в Apache 2.4 в Ubuntu 13.10. Я пытаюсь изменить Document Root в /home/fandi/public _html И все работает нормально. Но я пытаюсь создать папку в моем public_html/i, получаю ошибку, подобную этой:
[Sat Jan 25 10:59:50.149441 2014] [autoindex:error] [pid 1093] [client 127.0.0.1:39901] AH01276: Cannot serve directory /home/fandi/public_html/report_php/: 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
Я должен создать файл index.html
, index.php
и другой файл index.xxx
.
По умолчанию он должен указывать индекс каталога. Как включить индекс каталогов?
Это мой файл 000-default.conf
:
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /home/fandi/public_html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory "/home/fandi/public_html">
Options All
AllowOverride All
Require all granted
Options Indexes FollowSymLinks
</Directory>
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Пожалуйста, помогите, спасибо до ^^