I. Wamperserver
1. Download the installation to the local designated directory, official website http://www.wampserver.com
2. Based on your actual installation path, D:\pc\wampserver\wamp64\bin\apache\apache2.4.23\conf\extra, locate the Apache configuration file httpd-vhosts.conf
3. Open the Apache configuration file httpd-vhosts.conf
ServerName zp.com for a configured virtual site
DocumentRoot path to the D:/project/xzzp/public project file
4. Locate the native host file, bind to local, C:\Windows\System32\drivers\etc
5. Restart the service environment
Two. Phpstudy
1. Open Phpstudy
2. Locate the httpd-conf file
3. Open the Find 223 line, modify the folder to your project, (personal habits items placed in a unified folder) DocumentRoot "D:\project"
4. Locate the site domain name management, open
5. Follow the steps to step through
6. Locate the host file, open
7. Modify the file to bind the virtual domain name to the local
8. Restart the service environment
Environment configuration of Wampserver and Phpstudy under Windows environment