1.httpd.conf打开Virtual hosts
2.修改httpd-vhosts.conf
ServerAdmin webmaster@dummy-host.example.com DocumentRoot "D:\larwww\public" ServerName www.larwww.com ServerAlias larwww.com ErrorLog "logs/larwww.com-error.log" CustomLog "logs/larwww.com-access.log" common Options Indexes FollowSymLinks AllowOverride All Require all granted
注意:404的时候查看mod_rewrite.so是否打开