Wamp Apache Virtual machine configuration multi-domain Access Trilogy

Source: Internet
Author: User
Tags phpmyadmin

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.