Solution:
A hosts configuration:
1. Open the hosts file with an editor, location: C: \ \ System32 \ under Windows drivers \ etc directory
Example:
At the end of the hosts file to add the following code:
1 |
|
Second apache configuration:
1. Edit httpd.conf file, open the virtual host, location: in the apache installation directory, namely phpstudy installation phpStudy \ Apache \ conf directory, find Includeconf / extra / httpd-vhosts.conf, remove the #
2. Go to open the virtual host file httpd-vhosts.conf domain name configuration, location: \ phpStudy \ Apache \ under conf \ extra directory
Configuration rules:
Remember to restart the server.