[英]You don't have permission to access / on this server
我在linux mint上,我想為我的symfony 3應用程序配置虛擬主機。
這是我在/etc/apache2/sites-available/evaluation.conf上的Vhost:
<VirtualHost *:80>
ServerName evaluation.dev
ServerAlias www.evaluation.dev
DocumentRoot /home/sahnoun/InternshipPFE/Dev/systeme_evaluation/web
<Directory /home/sahnoun/InternshipPFE/Dev/systeme_evaluation/web>
AllowOverride All
Order Deny,Allow
Allow from All
</Directory>
ErrorLog /var/log/apache2/project_error.log
CustomLog /var/log/apache2/project_access.log combined
</VirtualHost>
我將主機添加到/ etc / hosts中,如下所示:
127.0.0.1 evaluation.dev
這對我來說並不算麻煩,它返回此錯誤:
禁止的
您無權訪問此服務器上的/。 Evaluation.dev端口8上的Apache / 2.4.18(Ubuntu)服務器
也許您需要高級文件訪問權限
chown -R www-data:www-data /home/sahnoun/InternshipPFE/Dev/systeme_evaluation/web
chmod -R 755 /home/sahnoun/InternshipPFE/Dev/systeme_evaluation/web
和
將VirtualHost文件從/etc/apache2/sites-available/evaluation.conf移至/etc/apache2/sites-enabled/evaluation.conf
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.