wamp虚拟主机配置
1、(第一次配置的时候才配置)1.找到编辑httpd.conf,查找Include conf/extra/httpd-vhosts.conf,把前面注释符号“#”删掉。
2、2步配置2.找到C:Windows/System32/drivers/etc/hosts 添加 127.0.0.1blog.com
3、3.配置wamp/apache/conf/extra/httpd-vhosts-conf保存虚拟主机:填上你要配置的细节,比如我的c:/wamp/www/bolgg/web/和servername也要例:<VirtualHost *:80>ServerAdmin webmaster@dummy-host2.example.comDocumentRoot "c:/wamp/www/blogg/web/"ServerName blogg.comErrorLog "logs/dummy-host2.example.com-error.log"CustomLog "logs/dummy-host2.example.com-access.log" common</VirtualHost>--------------------------------
4、之后记得重新启动服务器哦!