apache 配置虚拟主机

1、修改etc/hosts

127.0.0.1 blog.com

2、修改apache配置文件httpd.conf

Include conf/extra/httpd-vhosts.conf 前面的#号去除

3、修改extra/httpd-vhosts.conf


    DocumentRoot "D:\phpexe\project\blog"
    ServerName blog.com
4、在IE中访问blog.com

你可能感兴趣的:(php)