apache-配置虚拟主机

1.开启虚拟主机 wamp\bin\apache\Apache2.4.4\conf\http.conf L499 Include conf/extra/httpd-vhosts.conf 去掉;

2.‪设置虚拟主机 F:\wamp\bin\apache\Apache2.4.4\conf\extra\httpd-vhosts.conf

<VirtualHost *:80>
    DocumentRoot "d:/open"
    ServerName myopen.com
</VirtualHost>

3.打开C:\Windows\System32\drivers\etc\hosts

127.0.0.1       myopen.com

posted @ 2015-01-09 10:18  yo胡yo  阅读(140)  评论(0编辑  收藏  举报