У меня проблема с Apache 2.4 в Ubuntu 13.10. Я пытаюсь изменить Document Root на / home / fandi / public_html, и все работает нормально. Но я пытаюсь создать папку в своем public_html / получаю такую ошибку:
[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 webmaster@localhost
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
Пожалуйста, помогите, спасибо, прежде чем ^^