ubuntu 14.04 LTS + apache2 配置的時候需要復(fù)制的是 000-default.conf文件,之后對每個文件都進行配置之后在sites-enabled中建立鏈接。此時會遇到403不允許訪問的錯誤。這個時候需要在復(fù)制的文件中(如我自己的tian.conf文件)添加
<Directory /var/wwwroot/tian>
Options FollowSymLinks
AllowOverride None
Require all granted
</Directory>
<Directory /var/wwwroot/tian>
Options FollowSymLinks
AllowOverride None
Require all granted
</Directory>
2015-07-04