因為 Apache 的 Virtual Host 預設必須要放在 DocumentRoot 的目錄底下,否則會出現 client denied by server configuration
必須在 Virtual Host 的 conf 加上以下幾行

Apache 2.2 版

<Directory /{your_path}>
    #...
    Order allow,deny
    Allow from all
</Directory>


Apache 2.4版

<Directory /{your_path}>
    #...
    Require all granted
</Directory>

 

文章標籤
全站熱搜
創作者介紹
創作者 wbkuo 的頭像
wbkuo

長島冰茶的工程師筆記

wbkuo 發表在 痞客邦 留言(0) 人氣(197)