window环境 wamp 配置
1.在“httpd.conf”文件中查找:Include conf/extra/httpd-vhosts.conf 去掉前面的注释#。
2.在 C:\Windows\System32\drivers\etc\hosts文件底部添加
127.0.0.1 hello.com
3.httpd-vhosts.conf文件底部添加网站配置
<VirtualHost *:80>
DocumentRoot "d:/wamp/www/hello/public"
ServerName hello.com
</VirtualHost>
4.重启apache 即可