您无权访问/在此服务器上
You don't have permission to access / on this server
我正在 linux mint,我想为我的 symfony 3 应用程序配置一个虚拟主机。
这是我在 /etc/apache2/sites-available/evaluation.conf 上的虚拟主机:
<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
这对我来说是行不通的 return 这个错误:
Forbidden
You don't have permission to access / on this server.
Apache/2.4.18 (Ubuntu) Server at evaluation.dev Port 8
也许您需要大文件访问权限
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
我正在 linux mint,我想为我的 symfony 3 应用程序配置一个虚拟主机。
这是我在 /etc/apache2/sites-available/evaluation.conf 上的虚拟主机:
<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
这对我来说是行不通的 return 这个错误:
Forbidden
You don't have permission to access / on this server. Apache/2.4.18 (Ubuntu) Server at evaluation.dev Port 8
也许您需要大文件访问权限
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