Wamp下
C:WINDOWSsystem
<VirtualHost *:
ServerName dz
ServerAlias dz
DocumentRoot "e:/wamp/www/dz
</VirtualHost>
另外加上這句以後
<VirtualHost *:
ServerName localhost
ServerAlias localhost
DocumentRoot "D:/wamp/www"
</VirtualHost>
注
打開配置文件
<Directory "e:/wamp/www/dz
Options Indexes FollowSymLinks
AllowOverride all
Order Allow
Allow from all
</Directory>
重啟Apache
注意紅色加粗的部分
From:http://tw.wingwit.com/Article/program/PHP/201311/21204.html