wamp配置虚拟机步骤

1、首先修改C:\Windows\System32\drivers\etc下的hosts文件

     添加一行 127.0.0.1       myblog.org    //映射到本机

2、然后修改  在修改C:\wamp\bin\apache\apache2.4.9\conf\extra下的httpd-vhosts.conf文件

    //这个就是你的端口
    ServerAdmin webmaster@dummy-host2.example.com
    DocumentRoot "C:/wamp/www/myblog/public"  //一定要指向index.php
    ServerName myblog.org
    ErrorLog "logs/dummy-kmapptest.org-error.log"
    CustomLog "logs/dummy-kmapptest.org-access.log" common

3、重启wamp,在网址栏可以输入myblog.org访问项目
posted @ 2017-10-20 15:15  码农编程进阶笔记  阅读(24)  评论(0编辑  收藏  举报
返回顶部 有事您Q我