1. httpd.conf 中去掉LoadModule rewrite_modulemodules/mod_rewrite.so前面的#
2. httpd.conf 改所有的AllowOverride NONE 为AllowOverride All
3. httpd.conf 中去掉Includeconf/extra/httpd-vhosts.conf前面#
4. httpd-vhosts.conf 中启用NameVirtualHost *:80
5. httpd-vhosts.conf 中配置目录
<VirtualHost*:80>
DocumentRoot "C:/lamp/www"
ServerName localhost
ServerAlias localhost
<Directory "C:/lamp/www">
Options all
#Options None
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>