我已将操作系统从12.04更新到ubuntu 14.04,当我尝试重新加载我的Symfony2项目时出现此错误:
You don't have permission to access /app_dev.php/ on this server.
这是我的apache2文件:
<VirtualHost *:80>
ServerName s**a
ServerAlias d**n
# Indexes + Directory Root.
DirectoryIndex index.html index.php
DocumentRoot /home/****/
<Directory />
Options -Indexes +FollowSymLinks
Require all granted
</Directory>
<DirectoryMatch .*\.svn/.*>
Deny From All
</DirectoryMatch>
# Logfiles
</VirtualHost>
PS : it works well before the update !
答案 0 :(得分:7)
此问题与从Apache
2.2升级到2.4有关 - 请参阅doc
我有类似的问题,我将VirtualHost
配置更改为:
<VirtualHost>
<Directory /home/developer/Projects/sf2/web/>
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>