首页 > 代码库 > wamp中apache配置虚拟主机

wamp中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

wamp中apache配置虚拟主机