1 頁 (共 1 頁)

[問題]修改DocumentRoot 後,都會出現 Access forbidden 錯誤

發表於 : 2006-01-26 15:14
shanchieh
Greeting,
在 1.5.1 版中,我安裝好之後一切的運作都很正常,但是我要將 DocumenuRoot 指定到其他的目錄,他的預設值是

DocumentRoot "C:/Program Files/xampp/htdoc"

我要將其改成

DocumentRoot "D:/blogs"

但是我發現要進入首頁的時候都會出現Access forbidden的錯誤,我知道那是資料匣權限不對的錯誤,但是之前不管在 AppSevr 或在 Linux base 中的 apache 只要修改 DocumentRoot 即可。(當然目錄權限我設定成 777或者取消唯讀),可是 XAMPP 1.5.1 只改 DocumentRoot 似乎是不行,請問是不是我什麼地方做的不對呢?

謝謝您。

發表於 : 2006-01-28 15:53
jack7409

代碼: 選擇全部

DocumentRoot "D:/blogs" 
下面幾行的

代碼: 選擇全部

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "C:/Program Files/xampp/htdoc">
也要改成

代碼: 選擇全部

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "D:/blogs">

發表於 : 2006-02-06 14:58
shanchieh
謝謝您的指導,可以正常工作了。謝謝您。