By default, the site root of Phpstudy is in its own WWW directory, such as F:\phpStudy\WWW, where the address can be HTTP://127.0.0.1/or http://localhost/
The following is what we want to achieve is to create multiple sites, binding their respective domain name, so that we can do a number of project development, non-impact.
Note: This article explains the full version of Phpstudy, and other versions may not work or be different.
1. Open Phpstudy, and click "Site Domain name settings" in "Other options"
2. See the following interface, fill in the website domain name (feel free to write, it is recommended not to write your frequently accessed online domain name), and then select the Site directory (can be arbitrary directory, but do not use Chinese), then click "Add", and then click "Save settings and generate profile", restart the environment can be effective
3. Above we fill in the domain name, we want to be directly to visit our local website, to achieve this goal, we need to revise the hosts file on our own computer, assign domain name to 127.0.0.1, for example:
Everything is OK in here!
Reprinted from: http://www.cmhello.com/phpstudy-1.html
Phpstudy Create multiple sites, bind domain names