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、之后记得重新启动服务器哦!
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:39
阅读量:37
阅读量:29
阅读量:85
阅读量:93