禁止您无权访问此服务器上的/。 apache2

时间:2019-09-18 21:01:51

标签: apache debian

在检查了“ a2ensite 001-portofolio”并重新启动apache2之后,服务器向我发送了“禁止访问”

您无权访问此服务器上的/。”

error.log向我返回此信息:

[2019年9月18日星期三20:56:44.598982] [自动索引:错误] [pid 30321] [客户端86.238.167.106:55733] AH01276:无法提供目录/ var / www /:没有匹配的DirectoryIndex(index.html,找到index.cgi,index.pl,index.php,index.xhtml,index.htm),并且服务器生成的目录索引受Options指令禁止

<VirtualHost *:80>
    ServerAdmin pierrot.benda@gmail.com
    ServerName portofolio-xavmus.fr
    ServerAlias *.portofolio-xavmus.fr

    DocumentRoot /var/www/portofolio
    <Directory /var/www/portofolio>
            Options -Indexes +FollowSymLinks
            AllowOverride All
    </Directory>

    ErrorLog /dev/logs/error.log

有人可以帮助我,谢谢

0 个答案:

没有答案