Wamp Apache Virtual machine configuration multi-domain Access TrilogyWamp:
1:c:\windows\system32\drivers\etc->hosts to join your own domain 127.0.0.1www.a.com;127.0.0.1www.b.com2: Locate the installation directory apache2\conf\httpd.conf, findincludeconf/extra/httpd-vhosts.confDelete the previous comment symbol "#" and open the virtual machine. 3 Locate the installation directory e:\appserv\apache2.2\conf\extra->httpd-vhosts.conf foundVirtualHostNode join next paragraph note restart Server (Apache) <VirtualHost*:80> ServerNamewww.a.com#域名在hosts配置 Serveraliaswww.a.com#域名在hosts configuration is also called the primary domain name DocumentRootE:/WAMP/WWW/AA#物理路径 <directory "E:/WAMP/WWW/AA"> #物理路径 Options indexesfollowsymlinks allowoverride all Order Allow,deny </Directory></VirtualHost>Apache:1. Open the Appserv installation directory, locate the httpd.conf file, and remove the # number in front of the following two lines of text, respectively. #Loadmodulevhost_alias_module modules/mod_vhost_alias.soRemove # means enable Apache's virtual host feature. #includeconf/extra/httpd-vhosts.confGetting rid of this line means importing the virtual host configuration from the conf/extra/httpd-vhosts.conf file. 2. Open the E:\appserv\apache2.2\conf\extra->httpd-vhosts.conf file and add the information of the virtual host you want to add to the bottom of the file. First, all the
<VirtualHost/> configuration removed, then add your own definition of part <virtualhost *:80> serveradmin[email protected] documentroot "E:/APPSERV/WWW/DD"ServerNamewww.d.comErrorlogE:/appserv/www/dd/error.log</VirtualHost> <virtualhost *:80> serveradmin[email protected] documentroot "E:/appserv/www/phpmyadmin"ServerNamewww.phpMyAdmin.comErrorlogE:/appserv/www/phpmyadmin/error.log</VirtualHost> 3.set DNS resolution in C:\windows\system32\drivers\etc->hosts127.0.0.1 www.d.com127.0.0.1www.phpmyadmin.comWrite to your domain
Wamp Apache Virtual machine configuration multi-domain Access Trilogy