先打開Apache的conf目錄下的文件
<VirtualHost *:
ServerName www
DocumentRoot "D:/mydemo"
<Directory "D:/mydemo">
Options FollowSymLinks IncludesNOEXEC Indexes
DirectoryIndex index
AllowOverride Options FileInfo
Order Deny
Allow from all
</Directory>
</VirtualHost>
再到C:
在末尾添加如下代碼
然後再創建D
再然後重啟一下apache服務器
在浏覽器輸入www
From:http://tw.wingwit.com/Article/program/PHP/201311/21266.html