Mir*_*rlo 0 apache2 symfony ubuntu-14.04
我已将我的操作系统从12.04更新到ubuntu 14.04,当我尝试重新加载我的Symfony2项目时,我收到此错误:
You don't have permission to access /app_dev.php/ on this server.
Run Code Online (Sandbox Code Playgroud)
这是我的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 !
Run Code Online (Sandbox Code Playgroud)
此问题与从Apache2.2 升级到2.4有关 - 请参阅doc
我有类似的问题,我将VirtualHost配置改为:
<VirtualHost>
<Directory /home/developer/Projects/sf2/web/>
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3086 次 |
| 最近记录: |