1. Can be configured directly in the httpd.conf , or you can use the httpd-vhosts.conf configuration in the extra , It is recommended to use the second method.
2. Turn on the vhost.conf configuration in httpd.conf
3. Find the configuration file
4.
In order to use domain-based virtual host technology, we need to specify the IP and port of the server to receive the service.
This is done through the namevirtualhost command.
Namevirtualhost *:80
where * represents all IP addresses, if it is a specific IP,you can write on this IP, but it is recommended to use *, refers to the port.
Next, to configure the specific domain name separately, through the VirtualHost instruction segment, its parameters must and namevirtualhost
and must contain ServerName and documentroot in the instruction segment.
5. pay attention to the best use/, because Linux only recognize/and windows/,\ are recognized
6. Configure the hosts file to specify The correspondence between the domain name and DNS.
7. Write in the host file
8. Due to permissions issues
9 then you first configure the J:\wamp\apache\htdocs\phpMyAdmin
will be successful.
10. Next I'll write down the resolution of the permission issue
Virtual Host Configuration Learning notes