在安裝 XAMPP 後加入其它目錄

XAMPP 安裝後由於 apache 預設的目錄已設為 Deny from all 的關係,所以如果要加入其它目錄到網站裡面,就要動點手腳。

<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
#Deny from all #把這行註解掉
</Directory>


如果要加入其它目錄,設一下 Alias 就好了,如果要設定目錄的話就一併弄了:

Alias /proj “X:/Projects”
<Directory “X:/Projects”>
Options Indexes FollowSymLinks
AllowOverride All
</Directory>

Leave a reply:

Your email address will not be published.

Site Footer

Sliding Sidebar