First step: Install Appserv
Although this software has been discontinued since June 2008, this is still a very good PHP development integration environment. It is not only concise but also easy to use.
Official: http://www.appservnetwork.com/
PS: After installing Appserv on Windows7, use the program's own restart Apache tool if it doesn't work, you can turn on the system's services to restart or shut down the Apache service.
Second step: Modify the local Hosts file (role is domain redirection)
Hosts file address: C:\WINDOWS\system32\drivers\etc\hosts
Assuming your test domain name is: qiming.com, use Notepad to open the hosts and add them at the bottom
127.0.0.1 qiming.com
Step three: Start the Apache virtual hosting feature
Open the Appserv installation directory, locate the httpd.conf file, or find it from the Start menu.
Appserv->configuration->apache Edit the httpd.conf Configuration file to open the httpd.conf
Remove the # number in front of the following two lines of text, respectively
#LoadModule Vhost_alias_module modules/mod_vhost_alias.so
Remove # means enable Apache's virtual host feature
#Include conf/extra/httpd-vhosts.conf
To get rid of this line, it means to import the virtual host configuration from the conf/extra/httpd-vhosts.conf file.
Fourth step: Add Virtual Host information
Open the extra directory in the httpd-vhosts.conf file, whatever, directly at the bottom of the file to add their own virtual host information. as shown below.
<virtualhost *:80> DocumentRoot "C:\AppServ\www\1105" <Directory "C:\AppServ\www\1105" > options indexes followsymlinks multiviews AllowOverride All order allow,deny allow from all </Directory> ServerName www.cishop.com serveralias cishop.com errorlog c:\appserv\apache2.2\logs\ error.log customlog c:\appserv\apache2.2\logs\access.log common</ Virtualhost>
Each is given an administrator mailbox, indicating the root directory of this site, domain name, and error log storage location.
This article is from the "Epicor, Magento" blog, so be sure to keep this source http://3154408.blog.51cto.com/3144408/1553818
Appserv Configuring virtual Host Settings Tutorial