ubuntu 14.04 LTS + apache2 配置的時(shí)候需要復(fù)制的是 000-default.conf文件,之后對(duì)每個(gè)文件都進(jìn)行配置之后在sites-enabled中建立鏈接。此時(shí)會(huì)遇到403不允許訪問的錯(cuò)誤。這個(gè)時(shí)候需要在復(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